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
Ruby MIDI switch/glitch oddity
30 posts
• Page 2 of 3 • 1, 2, 3
Re: Ruby MIDI switch/glitch oddity
HughBanton wrote:No, none at all. I was just an accidental discovery that the 'monitor' arrangement produced similar sounding clicks and I wondered if there might be a common cause.
Since your experience is so totally different from mine, I almost think that it is due to your ASIO buffer being too small.
About Midi: When you connect a red Midi line with a green string, a conversion takes place and a back trigger causes a dropout, whenever you switch the selector. I don't know why this is not the case for you, but I thought, a system that takes away the string conversion from red and leaves it to Ruby could help.
This also does work perfectly fine for me. I'm eager to hearing what you experience!
Oh, and test this schematic, BEFORE increasing your ASIO buffer, please.
- Attachments
-
- click_dem[tula].fsm
- (28.89 KiB) Downloaded 908 times
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Ruby MIDI switch/glitch oddity
First thing is for me to apologise!
For my solution, with the sample and hold, the glitch disappears but so does the monitoring function. I was too quick and didn’t check the function.
I’ve experimented more and found that the string prim behaviour is not “normal” with a MIDI input. Have a look at the schematic.
The MIDI message displayed in the first string prim can never be extracted from it, even with triggering.
Below that is normal string prim behaviour where a string in the first one is also displayed in the second one.
I shall conclude that this MIDI monitoring with a string prim is a “special feature” to offer a quick aid and the prim’s functionality is modified with this connection in place.
It’s been interesting to find this out.
Tulamide's Ruby solution is the best method.
Cheers
Spogg
For my solution, with the sample and hold, the glitch disappears but so does the monitoring function. I was too quick and didn’t check the function.
I’ve experimented more and found that the string prim behaviour is not “normal” with a MIDI input. Have a look at the schematic.
The MIDI message displayed in the first string prim can never be extracted from it, even with triggering.
Below that is normal string prim behaviour where a string in the first one is also displayed in the second one.
I shall conclude that this MIDI monitoring with a string prim is a “special feature” to offer a quick aid and the prim’s functionality is modified with this connection in place.
It’s been interesting to find this out.
Tulamide's Ruby solution is the best method.
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Ruby MIDI switch/glitch oddity
instead of a STR prim ... have you tried a TEXT box ?
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: Ruby MIDI switch/glitch oddity
Tula's Ruby monitor is superior to the FS string method without a doubt. I've already made a cutdown version and put it in my toolbox for future use, attached.
Thanks for that. I've contemplated making a 'scrolling' MIDI monitor for a while, this will definitely be a good starting point for when I (or someone!) gets round to it.
Well, the news is that for me it functions without any glitches. Substitute a String prim and they're back, so certainly looks like you've hit the proverbial nail. However changing my ASIO buffer size has no noticable effect, so nothing very conclusive there.
Just for the record, I'm currently working with my HB3 Organ Generator in the attached form. Since early versions of HB3, (which I think is on Spogg's Flowstoners site) I've split the entire graphical programming section off into a separate entity; it saves the 'voicing' in a '.vcg file' that I've devised (loads much faster than a regular preset file) and an organ, when I finally get that far, will just run pre-loaded Generators, as per the attached. They're a bit of a Tardis - massive on the inside - and if it looks over-complicated bare in mind it can accurately do anything from a Contra Trombone 32' to a 1' Penny Whistle!
It is these that I've had trouble reliably switching, without the audio glitches, nothing actually to do with MIDI monitors ..
Thanks for your interest!
H
Thanks for that. I've contemplated making a 'scrolling' MIDI monitor for a while, this will definitely be a good starting point for when I (or someone!) gets round to it.
Well, the news is that for me it functions without any glitches. Substitute a String prim and they're back, so certainly looks like you've hit the proverbial nail. However changing my ASIO buffer size has no noticable effect, so nothing very conclusive there.
Just for the record, I'm currently working with my HB3 Organ Generator in the attached form. Since early versions of HB3, (which I think is on Spogg's Flowstoners site) I've split the entire graphical programming section off into a separate entity; it saves the 'voicing' in a '.vcg file' that I've devised (loads much faster than a regular preset file) and an organ, when I finally get that far, will just run pre-loaded Generators, as per the attached. They're a bit of a Tardis - massive on the inside - and if it looks over-complicated bare in mind it can accurately do anything from a Contra Trombone 32' to a 1' Penny Whistle!
It is these that I've had trouble reliably switching, without the audio glitches, nothing actually to do with MIDI monitors ..
Thanks for your interest!
H
- Attachments
-
- HB3_Gen_1.20.fsm
- (1.72 MiB) Downloaded 903 times
-
- MIDI Monitor (ruby).fsm
- (675 Bytes) Downloaded 875 times
-
HughBanton - Posts: 265
- Joined: Sat Apr 12, 2008 3:10 pm
- Location: Evesham, Worcestershire
Re: Ruby MIDI switch/glitch oddity
I like your organ Hugh!
Cheers
Spogg
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Ruby MIDI switch/glitch oddity
Spogg: Interesting finding. Never realized it!
Hugh: Is the HB3 where you have those issues? I ask, because it runs just fine here. (Wanted to learn from the modules, but it's all Assembler )
Hugh: Is the HB3 where you have those issues? I ask, because it runs just fine here. (Wanted to learn from the modules, but it's all Assembler )
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Ruby MIDI switch/glitch oddity
Spogg wrote:I like your organ Hugh!
Flattery will get you everywhere.
tulamide wrote:Hugh: Is the HB3 where you have those issues? I ask, because it runs just fine here. (Wanted to learn from the modules, but it's all Assembler )
Sure, HB3 runs just fine in single instances, it has done in most of its incarnations. But a proper organ will need to run umpteen (I'm not even sure yet how many a regular PC can handle) .. and it's when I multiply it all up that the switching starts to get glitchy.
Speed considerations are also why I've been converting everything I can into Assem. Don't for one minute imagine I know how to write this stuff (!!), but I've had some success over the months doing the editing that's described on Flowstone Guru, I've kind of got the hang of it after a while.
Happy to answer any questions and explain any of the insane workings inside HB3!
Hugh
-
HughBanton - Posts: 265
- Joined: Sat Apr 12, 2008 3:10 pm
- Location: Evesham, Worcestershire
Re: Ruby MIDI switch/glitch oddity
Here's the MIDI monitor again, but optimized for both, speed and code readability.
- Attachments
-
- midi_monitor.fsm
- (534 Bytes) Downloaded 857 times
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Ruby MIDI switch/glitch oddity
.... and following your lead here's a streamlined version of my MIDI switch. Didn't realise I could lose the input array.
I have a niggling doubt about the 0..71 loop - how fast does Ruby run this? Could this in fact be the bottleneck at the route of my problem? (And is there a better way, maybe some kind of note list ??)
H
I have a niggling doubt about the 0..71 loop - how fast does Ruby run this? Could this in fact be the bottleneck at the route of my problem? (And is there a better way, maybe some kind of note list ??)
H
- Attachments
-
- RubyMIDIswitch.fsm
- (22.22 KiB) Downloaded 886 times
-
HughBanton - Posts: 265
- Joined: Sat Apr 12, 2008 3:10 pm
- Location: Evesham, Worcestershire
Re: Ruby MIDI switch/glitch oddity
HughBanton wrote:I have a niggling doubt about the 0..71 loop - how fast does Ruby run this?
I’m just beginning with Ruby so it might be best to ignore this
I made a basic loop that counted from 0 to 100,000 in steps of 1. It completed in about 3 seconds, which means each iteration took around 33uS. This surprised me because I was thinking of it like DSP which is based on sample rate timing, and I took the 100Hz thing to mean the whole code would be “clocked” every 10mS. Obviously this isn’t the case; it’s only the elapsed time that seems to do this.
In addition when I doubled the loop size to 200,000 the duration increased from 3 to 11 seconds so I didn’t see a proportionality. It suggests that shorter loops may run even faster, but hey, what do I know? Very little so far.
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
30 posts
• Page 2 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 71 guests