Administrateur

  • Profile picture of Karim
  • Profile picture of Jean

OpenMusic

Groupe Public active 20 hours et 30 minutes ago

User group for OpenMusic and computer-aided composition. Visit the Forum for discussions.

VOICE – is there an input for midi-channel selection?

Auteur 5 Utilisateurs souscrits |
Profile photo of voodoopou
voodoopou

Dear list,
I have a similar question as my previous (chord-seq – is there an input for port selection?): I’m trying to change the midi-channel of a VOICE in order to send the midi information to the right instrument through IAC. I know I can do it entering VOICE, selecting all notes and changing to the appropriate channel, but this is quite time consuming and it doesn’t let much space for more automations.
Is there a way to control the midi channel from the outside? Similar question for the port
Thanx in advance!

Août 18, 2015 à 01:15 #14500
Profile photo of voodoopou
voodoopou

So far I found a workaround with an abstraction where it converts VOICE to CHORD-SEQ, there is the option of changing the channel externally, then converts back to VOICE and now VOICE remembers the channel selection (see attached screenshot). However, the solution makes its own temporary quantifications. They are not wrong but not so musical.

Attachments:
  1. Capture-d’écran-2015-08-19-à-22.58.19

    Capture-d’écran-2015-08-19-à-22.58.19.png

Août 19, 2015 à 21:03 #14525
Profile photo of voodoopou
voodoopou

Any better suggestion please?

  • Cette réponse a été modifiée 2 years et 12 months ago par Profile photo of voodoopou voodoopou.
Août 19, 2015 à 21:04 #14528
Profile photo of Jean
Jean

I guess the best option is to get the chords from the voices (3rd output), process them in a loop or a mapcar setting the adequate channels,
then input them back into a voice with the original tree
Jean

Août 21, 2015 à 21:46 #14536
Profile photo of voodoopou
voodoopou

Thank you Jean for your feedback! My previous workaround was not successful in several cases, because of serious problems of quantification.
I will try to apply your tip and get you posted.
Thanx again!

Août 22, 2015 à 12:08 #14539
Profile photo of voodoopou
voodoopou

P.S. I received your answer just yesterday late evening in my email, whereas you have replied 1 minute after my post…

Août 22, 2015 à 12:11 #14540
Profile photo of Karim
Karim

Hi Visatok,

Form my own collection of utilities. Just drop the lisp file in the patches folder in you OpenMusic folder. YOu have 2 functions :

– changechan works on pol and voice (cf documentation , type ‘d’)

– set-obj-port no documentation just put the object in first input, and type your port in second input. Hope this helps.

Août 22, 2015 à 13:51 #14541
Profile photo of Karim
Karim

Something is definitively wrong with our server sorry
here is the attachment again

K

Août 22, 2015 à 13:53 #14544
Jérôme
Jérôme

Hi Karim and all,

I’ve tried this patch but I have a bug (OM 6.9, OSX 10.10.5) I obtain “window-1″ at launch and when I want to see the workspace I obtain “window-2″.

It seems really weird !

…………………………………………………………………………………… jerome

Août 22, 2015 à 14:32 #14547
Profile photo of Karim
Karim

Thx Jerome,

My bad !!!!!

try this again !

Août 22, 2015 à 15:00 #14552
Jérôme
Jérôme

now it’s ok and everything works !

this object is just AMAZING !!!!!

Thank you very much K

Août 22, 2015 à 15:07 #14555
Profile photo of voodoopou
voodoopou

Dear Karim,

One more time you prove to be our deus ex machina!
Yet, I still haven’t managed to make it work.
I’m not sure about the connectivity.
Sorry about my dumm question, but could you provide an example patch for a VOICE and a POLY?

about set-obj-port, you have already provided me with this solution to a previous question.

Thanks again!
Vitasok

  • Cette réponse a été modifiée 2 years et 12 months ago par Profile photo of voodoopou voodoopou.
Août 22, 2015 à 18:02 #14556
Profile photo of voodoopou
voodoopou

UPDATE:
I manage to make work the changechan.lisp for VOICE.
However, it didn’t work for POLY.
I get the following error message (see attached pics)

Thanx for helping out!

Attachments:
  1. Capture-d’écran-2015-08-22-à-20.37.05

    Capture-d’écran-2015-08-22-à-20.37.05.png

  2. Capture-d’écran-2015-08-22-à-20.37.11

    Capture-d’écran-2015-08-22-à-20.37.11.png

Août 22, 2015 à 18:40 #14558
Profile photo of Karim
Karim

Vitasok,

Sorry Again my bad….! (it must be the heat… )
PLease change the patch to this ne, i forgot to include a function…
And you have also an example patch…
Please don’t hesitate for remarks…

Best
K

Août 22, 2015 à 18:45 #14563
Profile photo of Karim
Karim

Vitasok,

Sorry Again my bad….! (it must be the heat… )
PLease change the patch to this ne, i forgot to include a function…
And you have also an example patch…
Please don’t hesitate for remarks…

Best
K

Août 22, 2015 à 18:45 #14566
Profile photo of voodoopou
voodoopou

Dear Karim,

Everything works perfectly and I’m really thankful for that.
Your example patch is more that clear to understand

Have a good evening!
Vitasok

Août 22, 2015 à 19:55 #14569
Profile photo of Phivos
soklamon

Back to this topic

It seems like the newest version of OM not to understand the imported externals provided by Karim. As a result, the objects are dead… Any ideas?

Août 9, 2018 à 18:14 #27416
Profile photo of Karim
Karim

Dear Soklamon,

It is working. You should just load the ‘changechan.lisp’ file BEFORE using the patch. If not, you will indeed have dead objects.

How to load the change.lisp file :

is to put it in your patches folder in om … OOOPS, this folder seems to be missing in the 613 mac version due to OS complications.
As a linux user i don’t have this problem. For MAC users you should load :

-Right-click on the OM 6.13 icon (in your Applications folder)
– go to Contents
-then in the init directory.
-there you should copy the changechan.lisp

Now close all and fire up OM.
Import the changechan-example.omp patch into your workspace. This should do it..

Best
K

Août 9, 2018 à 19:02 #27417

Vous devez être connecté pour répondre à ce sujet.

Log in now