I'll check it out thanksivan wrote: ↑Tue Jan 08, 2019 4:07 pm A while ago I wrote a short article about waveforms that you might find useful:
https://2dengine.com/?p=waveforms#Sine_wave
Good luck!
Search found 38 matches
- Thu Jan 10, 2019 8:26 pm
- Forum: Support and Development
- Topic: Creating sine waves in love?
- Replies: 10
- Views: 8007
Re: Creating sine waves in love?
- Tue Jan 08, 2019 2:57 pm
- Forum: Support and Development
- Topic: Creating sine waves in love?
- Replies: 10
- Views: 8007
Re: Creating sine waves in love?
I may be missing something, but can't you have a long enough sample generated with e.g. audacity, play it and then stop it with a timer? The reason I need it in the code is that I want to try to make the time that the beeps last relative. So making one sound and playing it more slowly would make it...
- Tue Jan 08, 2019 2:56 pm
- Forum: Support and Development
- Topic: Creating sine waves in love?
- Replies: 10
- Views: 8007
Re: Creating sine waves in love?
If you must use Source:setPitch then: local thisisluacodeandnotjavascript = true local thisisluacodeandnotjavascript = false local thisisluacodeandnotjavascript = {} local thisisluacodeandnotjavascript = 'abc' local thisisluacodeandnotjavascript = "def" local thisisluacodeandnotjavascript...
- Mon Jan 07, 2019 9:12 pm
- Forum: Support and Development
- Topic: Creating sine waves in love?
- Replies: 10
- Views: 8007
Re: Creating sine waves in love?
Yes, it's possible to create any waveforms, but there's tons of other things you should consider: - What kind of representation do you want to store the samplepoints? (lua numbers by themselves are 64bit double-precision floats in löve, although SoundData only supports 8 and 16 bit signed integers,...
- Mon Jan 07, 2019 5:20 pm
- Forum: Support and Development
- Topic: Creating sine waves in love?
- Replies: 10
- Views: 8007
Creating sine waves in love?
Hi,
I would like to create a sine wave inside my code in love. The wiki makes it seems like you always have to pass in your own sound and then use effects on it to change it. Is it possible to create one inside of love2d?
Thanks,
Xpali2
I would like to create a sine wave inside my code in love. The wiki makes it seems like you always have to pass in your own sound and then use effects on it to change it. Is it possible to create one inside of love2d?
Thanks,
Xpali2
- Mon Dec 24, 2018 4:39 pm
- Forum: Support and Development
- Topic: Animation out of sync?
- Replies: 7
- Views: 7058
Re: Animation out of sync?
> I know they aren't but I can't find the code stepping in zerobrane studio, if you can help me find it I can try to check some variable indexes over animation time to find out where the problem is. It's available in `Project | Step Into/Over` menu (F10/Shift-F10). You can also use the icons on the...
- Wed Dec 05, 2018 7:14 pm
- Forum: Support and Development
- Topic: Animation out of sync?
- Replies: 7
- Views: 7058
Re: Animation out of sync?
Its hard to help you without a love file and/or a clear description of what goes wrong. Ive peeked at the code and the first thing that sticks out are the many copy pasted blocks ( if player.statuts == etc) Whenever you find yourself writing (almost) the same lines of code twice or more shortly aft...
- Mon Dec 03, 2018 7:20 pm
- Forum: Support and Development
- Topic: Animation out of sync?
- Replies: 7
- Views: 7058
Re: Animation out of sync?
So if nobody has the answer to this issue. Can somebody tell me how to use the debugger and breakpoints to find out the problem myself?
- Tue Nov 13, 2018 7:02 pm
- Forum: Support and Development
- Topic: Animation out of sync?
- Replies: 7
- Views: 7058
Animation out of sync?
Hello again.. I am making an animation for a simple game character, of whom the arms are a separate quad from the body and I have encountered a glitch I don't seem to be able to solve by looking at my code. GIF of the glitch: https://ibb.co/hJwBh0 -- Note that the glitch doesn't happen when the char...
- Thu Nov 08, 2018 8:15 pm
- Forum: Support and Development
- Topic: Override a current button?
- Replies: 5
- Views: 4686
Re: Override a current button?
If you want your character to keep moving when both keys are pressed, but to remember the last key pressed, the idea is as follows: you need a movement state; when both left and right are off, you set it to "none" (or "stopped" or "idle" or "standing" or what...