Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Help!!! I'm tired of long and double notes

For general discussion related FlowStone

Help!!! I'm tired of long and double notes

Postby aefa » Thu Sep 21, 2017 4:04 pm

Hello everyone,

I don't know why I keep getting sustained notes and, in odd times, double notes at the same time.
This looks pretty straight forward to me but doesn't work so.

What is it supposed to do?
1. Turn the knob and select a note stream.
2. When midi key is pressed, randomize from the note stream and play a sound (same from 0 to 3)
3. If 4 is selected or bypass is on, play the original note from keyboard.

important: when the key is released the note have to turn off, but it doesn't some times. (or goes double)
Any help... please...

Thank for any thought
Attachments
Test_14.fsm
(120.81 KiB) Downloaded 808 times
aefa
 
Posts: 48
Joined: Wed Mar 26, 2014 12:52 pm

Re: Help!!! I'm tired of long and double notes

Postby aefa » Fri Sep 22, 2017 4:16 pm

Update!!!
Finally, it works!! It was a very simple thing that would, of course, drive a noob like me nuts!. After pressing the key countless times while looking at the behavior of the schematic, I noticed that sometimes the trigger would happen before the note was generated. That didn't happen in bypass mode. I wasn't too sure of the purpose of "t" on the event parameters (...please don't laugh...) but I dared myself and changed "t", on the output to 0.1 and it worked like magic!

def event i,v,t
if @nStream.length > 0
output 0, @nStream.sample.to_i,0.1
end
end

Here is the updated one.
Attachments
Test_14.fsm
(120.84 KiB) Downloaded 800 times
aefa
 
Posts: 48
Joined: Wed Mar 26, 2014 12:52 pm


Return to General

Who is online

Users browsing this forum: Google [Bot] and 54 guests