Search found 47 matches

by MachineCode
Tue Jan 23, 2018 12:07 pm
Forum: General
Topic: ZeroBrane Studio Lua IDE v1.70 is released
Replies: 3
Views: 350

Re: ZeroBrane Studio Lua IDE v1.70 is released

What is the best way to set up ZB so I can select the nightly-build of 0.11 as an alternative to stable 0.10.2? Ideally the 0.11 would appear in the project interpreter option so 0.11 can be used on a project by project basis.
by MachineCode
Tue Jan 23, 2018 11:41 am
Forum: Support and Development
Topic: Synchronising video and audio
Replies: 2
Views: 19

Synchronising video and audio

This is probably a question for Zorg. I am generating video frames with audio to be played simultaneously. The audio will be queued based on 60hz frames from the draw function. So, given the sample rate, can I rely on the SR * 1/60 sample count to not slowly slip out of sync with the video frame rat...
by MachineCode
Sat Jan 13, 2018 5:44 am
Forum: Support and Development
Topic: Image:refresh and Image:replacePixels in 0.11
Replies: 0
Views: 91

Image:refresh and Image:replacePixels in 0.11

I am working on a pixel drawing engine that uses 16bit instructions to draw stuff on an imageData which then updates the image in VRAM for drawing on the screen. A lot of the drawing could be done on a canvas, however using mapPixel to change colors and similar pixel operations would need some trick...
by MachineCode
Mon Aug 21, 2017 12:16 am
Forum: Support and Development
Topic: Playing a segment of audio
Replies: 7
Views: 685

Re: Playing a segment of audio

Thanks again zorg. I think I have enough to start playing around with this now.
by MachineCode
Sun Aug 20, 2017 3:51 pm
Forum: Support and Development
Topic: Playing a segment of audio
Replies: 7
Views: 685

Re: Playing a segment of audio

OK, so that means you could continuously synthesise audio using a single queueableSource and use a set of SoundData buffers in a round robin configuration to receive the output of your generator using setSample. These buffers would be refilled, then tacked on to the queue for the source to play. In ...
by MachineCode
Sun Aug 20, 2017 4:45 am
Forum: Support and Development
Topic: Playing a segment of audio
Replies: 7
Views: 685

Re: Playing a segment of audio

Thanks zorg. Is there a link to the details of queuable source? One of the other things I want to try is generating a sound from a parametric descriptor held in a table or maybe generated by procedure. This may result in sample data of arbitrary length. Using 0.10, for each instance I could make a n...
by MachineCode
Sat Aug 19, 2017 8:05 am
Forum: Support and Development
Topic: Playing a segment of audio
Replies: 7
Views: 685

Playing a segment of audio

Just a question about audio and the Source:play(). Is there any way to play a section from one point to another? I am thinking of a sound effects library in a single source that has a lookup table of start and end for each effect. I can see that using a :seek(start) then :play() and a timer activate...
by MachineCode
Sun Jun 25, 2017 2:03 pm
Forum: Support and Development
Topic: Love2d on a Raspberry Pi and Adafruit TFT2.8 screen
Replies: 5
Views: 817

Re: Love2d on a Raspberry Pi and Adafruit TFT2.8 screen

The latest Raspbian includes software GLX emulation under X. All you need to do is install love from the included software installer, and open a term and type "love" and you will get a non-accelerated "Game Over" screen running in X. The debian repositories are not tracking love2d updates at all, so...
by MachineCode
Sat Jun 24, 2017 7:37 am
Forum: Support and Development
Topic: Love2d on a Raspberry Pi and Adafruit TFT2.8 screen
Replies: 5
Views: 817

Re: Love2d on a Raspberry Pi and Adafruit TFT2.8 screen

Do you know if any OpenGL software works on the TFT? You could test this by trying GlGears to see how that goes. Aside from that, the problem probably is in SDL2. Pulse is the sound library, so you might need to install that manually. I am assuming that you only expect software emulation of OpenGL. ...
by MachineCode
Tue Jun 06, 2017 10:02 am
Forum: Support and Development
Topic: Help me understand love.math.noise usage properly...
Replies: 15
Views: 1794

Re: Help me understand love.math.noise usage properly...

The noise function is very interesting once you understand what it is doing. The best explanation I came across was to create a random value at regular intervals 0, 1, 2, 3 ... and then draw a smooth curve through them. The value at any point of the curve is then given by noise(x). Extend this to 2,...