Bidule-module to set any/all MIDI notes to a pre-defined length

General Discussion about Plogue Bidule

Moderators: vincent@plogue, davidv, seb@plogue

blackcom
Posts: 7
Joined: Tue Mar 11, 2014 2:35 pm

Bidule-module to set any/all MIDI notes to a pre-defined length

Postby blackcom » Thu Oct 05, 2017 7:45 pm

Is there any bidule-module that can take incomming MIDI data and set all MIDI notes to a pre-defined length? For example reglardless how long a note is it would allways be 120ms long after going through this bidule-module. Does this exist, cant' find it.

boonier
Posts: 986
Joined: Wed Sep 14, 2005 6:34 am
Location: Brighton, UK

Re: Bidule-module to set any/all MIDI notes to a pre-defined length

Postby boonier » Thu Oct 12, 2017 9:46 am

I think you'd have to build it, though I haven't looked through all the modules. Quantise maybe worth looking at?

Otherwise you'd want to extract the frequency and velocity, then reconstruct a new note, with a fixed length of 120ms:

Midi input > Note Extractor2 > Freq and Vel directly into Note Creator

Then:

Note Extractor2 (Note on trigger) > Gate Clock (Reset Trigger)
Constant (120) > Gate Clock (length input)

output to Note Creator gate input

This is all off the top of my head as I haven't got time to fire up Bidule to check. See how you get on :)

NTO
Posts: 110
Joined: Sat Feb 18, 2017 9:54 am

Re: Bidule-module to set any/all MIDI notes to a pre-defined length

Postby NTO » Thu Oct 12, 2017 12:24 pm

Thanks boonier,
Efforts like this make the forum great!
(I wanted one, so proto'd)
Wrinkle: Gate clock wants samples not time. (Add unit converter)
2017-10-12_Bidule_boonier_FixedNoteLength.png
2017-10-12_Bidule_boonier_FixedNoteLength.png (20.18 KiB) Viewed 339 times


Polyphony and inter-note timing issues though...
2017-10-12_BiduleFixedNoteTimingResult.png
2017-10-12_BiduleFixedNoteTimingResult.png (50.52 KiB) Viewed 332 times

boonier
Posts: 986
Joined: Wed Sep 14, 2005 6:34 am
Location: Brighton, UK

Re: Bidule-module to set any/all MIDI notes to a pre-defined length

Postby boonier » Fri Oct 13, 2017 3:42 am

Oh good well that kinda worked! I guess it gets a bit more fiddly with polyphony, but the adapter can help there.

nym
Posts: 116
Joined: Tue Jun 11, 2013 10:50 pm

Re: Bidule-module to set any/all MIDI notes to a pre-defined length

Postby nym » Fri Oct 13, 2017 7:46 am

what about a message filter blocking note offs, and then a parallel routing of the note on to a 120ms delay, and then convert the delayed noteons to noteoffs? (original noteons pass through unchanged)

this won't have any polyphonic issues.

NTO
Posts: 110
Joined: Sat Feb 18, 2017 9:54 am

Re: Bidule-module to set any/all MIDI notes to a pre-defined length

Postby NTO » Fri Oct 13, 2017 12:26 pm

boonier wrote:Oh good well that kinda worked! I guess it gets a bit more fiddly with polyphony, but the adapter can help there.


Yeah, I see one problem in the single signal path. When incoming notes are shorter and more frequent than the desired duration.
2017-10-13_BiduleFixedNoteProblem1.png
2017-10-13_BiduleFixedNoteProblem1.png (7.42 KiB) Viewed 301 times


I think you're saying the polyphonic adapter there, but I haven't had any luck getting multiple control events out of it (? - first attempt at using it...)

NTO
Posts: 110
Joined: Sat Feb 18, 2017 9:54 am

Re: Bidule-module to set any/all MIDI notes to a pre-defined length

Postby NTO » Fri Oct 13, 2017 3:05 pm

I modified my note gen group, which led to another sort of problem, but I haven't defined it yet! :lol:
(Think it might be the DAW's opinion of what it sees, but outside of hex decode for the file, don't know how to check...)
(A midi editor seems to indicate the time values are consistent for all notes, and 800 ms is twice the length of 400 ms :roll: )
2017-10-13_BiduleFixedNoteLength_SecondGroup.png
2017-10-13_BiduleFixedNoteLength_SecondGroup.png (23.49 KiB) Viewed 288 times

2017-10-13_BiduleResult_SecondGroup.png
2017-10-13_BiduleResult_SecondGroup.png (23.47 KiB) Viewed 288 times


In the 'only have a hammer' mode
I 'brute forced' the poly.
2017-10-13_BiduleNoteLengthPoly.png
2017-10-13_BiduleNoteLengthPoly.png (97.68 KiB) Viewed 284 times

jersmi
Posts: 3412
Joined: Tue Apr 19, 2005 4:18 pm
Location: Oakland, California

Re: Bidule-module to set any/all MIDI notes to a pre-defined length

Postby jersmi » Sat Oct 14, 2017 1:55 am

In 'only have a hammer' mode, could the Midi Splitter be of use? Also, did nym's suggestion do any good? Also, I probably would have just tried to delay the Note On trigger 120ms and send to Note Off with the Note Extractor 2 / Creator 2.

NTO
Posts: 110
Joined: Sat Feb 18, 2017 9:54 am

Re: Bidule-module to set any/all MIDI notes to a pre-defined length

Postby NTO » Sat Oct 14, 2017 10:20 am

nym wrote:what about a message filter blocking note offs, and then a parallel routing of the note on to a 120ms delay, and then convert the delayed noteons to noteoffs? (original noteons pass through unchanged)
this won't have any polyphonic issues.

jersmi wrote:Also, did nym's suggestion do any good?


This is how I implemented that suggestion. The original note creator generates note offs, so trapped them there too.
2017-10-14_BiduleTimedNoteDelayedOffApp.png
2017-10-14_BiduleTimedNoteDelayedOffApp.png (62.71 KiB) Viewed 253 times


The absolute times are off, because I still don't understand modulators.
2017-10-14_BiduleDelayModChanged.png
2017-10-14_BiduleDelayModChanged.png (17.32 KiB) Viewed 253 times


The problem w/a single signal source occurs when the extended note overlaps a new note. The times indicated are ~10mS longer than the actual note durations due to the param thing above.
2017-10-14_BiduleDelayedOffProb.png
2017-10-14_BiduleDelayedOffProb.png (31.83 KiB) Viewed 253 times

NTO
Posts: 110
Joined: Sat Feb 18, 2017 9:54 am

Re: Bidule-module to set any/all MIDI notes to a pre-defined length

Postby NTO » Sat Oct 14, 2017 10:23 am

jersmi wrote:In 'only have a hammer' mode, could the Midi Splitter be of use?

I briefly looked for that, but couldn't remember what it was... :roll:
There the number of outputs passed to TimedNote and Dummy would control the polyphony versus the accum range I used, so easier and extendable. :)

EDIT: Oooops! Split by note is only for concurrent notes (chords), and the output is always 16 channels wide...
Last edited by NTO on Sat Oct 14, 2017 11:35 am, edited 2 times in total.

NTO
Posts: 110
Joined: Sat Feb 18, 2017 9:54 am

Re: Bidule-module to set any/all MIDI notes to a pre-defined length

Postby NTO » Sat Oct 14, 2017 10:33 am

jersmi wrote:Also, I probably would have just tried to delay the Note On trigger 120ms and send to Note Off with the Note Extractor 2 / Creator 2.

That's effectively what I did in the modified note gen group displayed above the app pic (need the multiple signal paths because of the above about overlap).

TimedNote2.bgrp
(9.69 KiB) Downloaded 4 times


Return to “Bidule General”

Who is online

Users browsing this forum: No registered users and 1 guest