MIDI Decoder and Encoder: 2 atoms for SDK

A place for developers to share ideas and assist each other in solving problems.

Moderators: valis, garyb

User avatar
at0m
Posts: 4718
Joined: Sat Jun 30, 2001 4:00 pm
Location: Bubble Metropolis
Contact:

MIDI Decoder and Encoder: 2 atoms for SDK

Post by at0m »

Hi,

I think some of you been looking forward to these 2 atoms: Here's a MIDI Decoder and a MIDI Encoder atom.

Not that I could stop anyone from using them commercially, but I'm really looking forward to your creative use of them in free devices :)

at0m.
Attachments
midi_codec.zip
(22.95 KiB) Downloaded 67 times
more has been done with less
https://soundcloud.com/at0m-studio

User avatar
Peter Drake
Posts: 152
Joined: Thu Nov 08, 2018 12:27 pm
Location: Outer Milky Way

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by Peter Drake »

It's probably less expensive (money vs time) for me to commision devices instead of trying to build. I'll blunder around with these, thank you.

User avatar
Spielraum
Posts: 512
Joined: Fri Apr 18, 2014 1:11 pm
Location: Raumschiff Erde

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by Spielraum »

thanks for that!! , i'll see what's possible 8)

i have a lot of SDK things in the pipeline, but i want to make sounds again the next few days... kribbel kribbel
|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅] Lange Welle ~ Mittelwelle ~ Kurze Welle ~ Ultra Kurze Welle

User avatar
Spielraum
Posts: 512
Joined: Fri Apr 18, 2014 1:11 pm
Location: Raumschiff Erde

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by Spielraum »

first view <zplane> dsp?!
ok i will check again! thanks for the open container structure, maybe a stable solution can be found in this connection...
basically i want rebuild shark's LOOP from 2006, he must have used the midi message builder !? only the stable triggering still fails, but his sequencer is running stable on my xite, which gives me great hope
\o/
|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅] Lange Welle ~ Mittelwelle ~ Kurze Welle ~ Ultra Kurze Welle

User avatar
at0m
Posts: 4718
Joined: Sat Jun 30, 2001 4:00 pm
Location: Bubble Metropolis
Contact:

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by at0m »

Spielraum,

Do these load ok? Or ask for extra .dsp files or so?

Have fun :)
more has been done with less
https://soundcloud.com/at0m-studio

User avatar
Spielraum
Posts: 512
Joined: Fri Apr 18, 2014 1:11 pm
Location: Raumschiff Erde

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by Spielraum »

at0m wrote:
Wed Jan 15, 2020 6:07 am
Do these load ok?
yes, can load it, thnks man
i haven't checked it yet, i just drifted to preset management workflow...
at0m wrote:
Wed Jan 15, 2020 6:07 am
Or ask for extra .dsp files or so?
oh yes, I'd love to!
everything about midi would be great! my last approach was with value sender for s&h. OK, mathematic logic works, but timing is unstable again.
the challenge: s&h 2x2 events for Note On (pitch + velocity). and Note Off (pitch + Vel 0) :roll:
in addition, music hangers must be avoided at all costs :evil:
at0m wrote:
Wed Jan 15, 2020 6:07 am
Have fun :)
ever!!
75 years of peace in europe :P
CHEERS
|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅] Lange Welle ~ Mittelwelle ~ Kurze Welle ~ Ultra Kurze Welle

User avatar
jpo_midigods
Posts: 88
Joined: Mon Aug 31, 2015 3:19 am
Contact:

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by jpo_midigods »

Hi,
Im just needing this encoder atom to use in Modular. Any chance that it exists as a Modular module?

I need to extract cc number from incoming midi cc messages, it seems easy but not for me in Modular,

thanks,
jpo
"MIDI is the languaje of Gods" (anon)

User avatar
Spielraum
Posts: 512
Joined: Fri Apr 18, 2014 1:11 pm
Location: Raumschiff Erde

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by Spielraum »

Image
https://bcmodular-guide.000webhostapp.com/chapter/Multi-Mo.html

hello anon, sharc used the atom in his multi-mo.
works perfectly,
except for midi notes, since a midi message is issued for each event. (pitch> 1st event, velocity> 2nd event) the same applies to note off.
therefore i do not recommend this atom for midi notes.
i have been checking all atoms and scripts for several months now, and i already have about 10 approaches in the drawer. unfortunately the timing is always unstable. since sharc runs his LOOP v0.6b super stable on XITE, i have been analyzing his device for months as well. unfortunately simon does not respond to my requests. not here, not in the bc-modular forum, not even in GitHub. a shame, but I'm not giving up. the last two days i checked some ideas again and also noticed that LOOP seq + midi convert engine does not need dsp atoms. i almost suspect that he uses scripts and midi messages / sysex ...

i created a topic to generate more curiosity, enthusiasm and support.
unfortunately not really successful so far
https://forums.scopeusers.com/viewtopic.php?f=36&t=36169


ps .: zaquencer is awesome, thanks for refreshing;)
https://forums.scopeusers.com/viewtopic.php?f=5&p=344318#p344318
|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅] Lange Welle ~ Mittelwelle ~ Kurze Welle ~ Ultra Kurze Welle

User avatar
jpo_midigods
Posts: 88
Joined: Mon Aug 31, 2015 3:19 am
Contact:

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by jpo_midigods »

Hi Spielraum, im always using the multi-mo to encode but i need also to decode midi in cc messages. So i can proccess the cc value received, but also which cc number was sent. Im using BCM-32A module to catch 32 different ccs (for the mackie C4 project). I need a way to know cc number.

why theres no a multi-mo to decode? Modular has lots of modules...

A workaround could be connecting the 32 async outs of BCM-32A to a module with 32 async inputs that outs the index of the last input that has changed its value. Its like a 32to1 autoswitch. Im not sure if this its called multiplexing nor such a module exists for Modular, maybe i'll design mine as a circuit level module, i like clms.

Otherwise i will have to repeat my design x32 since i have 32 knobs to program, not elegant for Modular as a rapid prototype design tool aj aj
"MIDI is the languaje of Gods" (anon)

User avatar
Spielraum
Posts: 512
Joined: Fri Apr 18, 2014 1:11 pm
Location: Raumschiff Erde

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by Spielraum »

since according to logic you can only route to one destination, use this module.
Image

i'm wondering if there is a midi2cc120 splitter (without scope "midi assignment"),
mmhh... i'll look today.

may be that i had already built such a module.
...if no other scoper foresaws?
|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅] Lange Welle ~ Mittelwelle ~ Kurze Welle ~ Ultra Kurze Welle

User avatar
Spielraum
Posts: 512
Joined: Fri Apr 18, 2014 1:11 pm
Location: Raumschiff Erde

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by Spielraum »

https://forums.scopeusers.com/viewtopic.php?f=10&t=36320
see preview pic
"C120" is bidirectional if you need, but with 120 fix destinations...
or "C16" with multi cc i/o...
|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅] Lange Welle ~ Mittelwelle ~ Kurze Welle ~ Ultra Kurze Welle

User avatar
jpo_midigods
Posts: 88
Joined: Mon Aug 31, 2015 3:19 am
Contact:

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by jpo_midigods »

Yes i have one mackie C4 knob working ok using Control Change S.

now i want to replicate it x32 so i need a Control Change S for 32 ccs that outs the value but also the cc number. This cc number is the last touched knob number. I need it as index for 1x32 switch i use to send calculated cc value to correct async connector of BCM32A for the midi out.

So i have a BCM32 to catch 32 ccs. Another BCM32 to spit out 32 new, different ccs assigned. And in the middle is the logic for inc/dec one cc using another, diferent cc, and the sysex logic for the C4 screen. Modules in the middle are shared for all 32 knobs.
I need just the switch 32x1 and the 1x32. first must provide cc index for last. did I explain it well?



today ill try j9k ad da bit modules for decoding. Im learning recursivity of clm modules (ideally I only use one instance of each module in a design) so maybe im missing something, any ideas welcome
"MIDI is the languaje of Gods" (anon)

User avatar
jpo_midigods
Posts: 88
Joined: Mon Aug 31, 2015 3:19 am
Contact:

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by jpo_midigods »

uh! ah! oh! i had missed the whole thread and pack! im installing it right now. Thanks! i'll test and comment
jpo
"MIDI is the languaje of Gods" (anon)

User avatar
jpo_midigods
Posts: 88
Joined: Mon Aug 31, 2015 3:19 am
Contact:

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by jpo_midigods »

ops... just preview pic, still no pack. what a nice pack!

I do need this pack but right now im just needing a async connector with the last cc midi number received.
I have connectors for cc value but not for cc number, or index, or id.
"MIDI is the languaje of Gods" (anon)

User avatar
Spielraum
Posts: 512
Joined: Fri Apr 18, 2014 1:11 pm
Location: Raumschiff Erde

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by Spielraum »

ok, i will check+built a module,
but it will then output all midi input data,
if necessary you have to put a filter
|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅] Lange Welle ~ Mittelwelle ~ Kurze Welle ~ Ultra Kurze Welle

User avatar
jpo_midigods
Posts: 88
Joined: Mon Aug 31, 2015 3:19 am
Contact:

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by jpo_midigods »

Thank you Spielraum, i hope its only add a async connector and put data you have as internal index, so not much work and allows more modular automation. I'll test it deeply.
"MIDI is the languaje of Gods" (anon)

User avatar
Spielraum
Posts: 512
Joined: Fri Apr 18, 2014 1:11 pm
Location: Raumschiff Erde

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by Spielraum »

https://forums.scopeusers.com/viewtopic.php?p=344359#p344359

Image
Midi to Value Analyzer
(7bit logic: 1 is 0, 2 is 1, and so on)

! most bcm switches needs a 32bit logic (must convert 7bit to 32 bit range) or take the "BitRes" SR-module soon...
cheers ron
Last edited by Spielraum on Sun Apr 05, 2020 8:16 am, edited 1 time in total.
|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅] Lange Welle ~ Mittelwelle ~ Kurze Welle ~ Ultra Kurze Welle

User avatar
jpo_midigods
Posts: 88
Joined: Mon Aug 31, 2015 3:19 am
Contact:

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by jpo_midigods »

Thanks Atom and Spielraum, this was Scopes Missing Link!
now it is Modular Power for the MIDI masses

jpo
"MIDI is the languaje of Gods" (anon)

User avatar
jpo_midigods
Posts: 88
Joined: Mon Aug 31, 2015 3:19 am
Contact:

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by jpo_midigods »

There is also old Midi2Val module from CWM but it seems only works for velocity data so the name is confusing.
"MIDI is the languaje of Gods" (anon)

User avatar
Spielraum
Posts: 512
Joined: Fri Apr 18, 2014 1:11 pm
Location: Raumschiff Erde

Re: MIDI Decoder and Encoder: 2 atoms for SDK

Post by Spielraum »

anon wrote:
Sun Apr 05, 2020 2:42 am
...old Midi2Val module from CWM...
is a "Midi to Note Number" module
http://www.cwmodular.org/bcmcwmmodules01.html
Image
|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅] Lange Welle ~ Mittelwelle ~ Kurze Welle ~ Ultra Kurze Welle

Post Reply