Python Forum
Adding MIDI Channels to each Input
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding MIDI Channels to each Input
#1
Hi Guys, apologies as i am a complete beginner.

I downloaded this python script to map my midi controller to Ableton Live. I am having a problem where i cannot use the full potential of my controller due to the script only allowing me to add one midi channel for buttons. E.G. BUTTONCHANNEL = 1 etc. I'm trying to add an option where i can choose the message/data number and MIDI channel to every element of the main script (MIDI MAP.py), So instead of just PLAY = (data number) i want PLAY = (MIDI CHANNEL, Data Number). A big big thank you in advance and thank you if someone could even point me in the right direction as i am keen on learning about python.

Python Script Link

Attached Files

.zip   MixTrack_Quad.zip (Size: 39.29 KB / Downloads: 99)
Reply
#2
Please post your code using the python tags rather than as zip or link. Then we can take a look.
Larz60+ likes this post
Reply
#3
(Apr-18-2023, 06:38 PM)zach1234 Wrote: Hi Guys, apologies as i am a complete beginner.

I downloaded this python script to map my midi controller to Ableton Live. I am having a problem where i cannot use the full potential of my controller due to the script only allowing me to add one midi channel for buttons. E.G. BUTTONCHANNEL = 1 etc. I'm trying to add an option where i can choose the message/data number and MIDI channel to every element of the main script (MIDI MAP.py), So instead of just PLAY = (data number) i want PLAY = (MIDI CHANNEL, Data Number). A big big thank you in advance and thank you if someone could even point me in the right direction as i am keen on learning about python.

Python Script Link

Attached Files

.py   SpecialMixerComponent.py (Size: 562 bytes / Downloads: 49)
.py   SpecialChannelStripComponent.py (Size: 1.37 KB / Downloads: 45)
.py   MixTrack_Quad.py (Size: 11.44 KB / Downloads: 58)
.py   MIDI_Map.py (Size: 7.39 KB / Downloads: 57)
.py   __init__.py (Size: 205 bytes / Downloads: 41)
Reply
#4
(Apr-19-2023, 05:19 PM)zach1234 Wrote:
(Apr-18-2023, 06:38 PM)zach1234 Wrote: Hi Guys, apologies as i am a complete beginner.

I downloaded this python script to map my midi controller to Ableton Live. I am having a problem where i cannot use the full potential of my controller due to the script only allowing me to add one midi channel for buttons. E.G. BUTTONCHANNEL = 1 etc. I'm trying to add an option where i can choose the message/data number and MIDI channel to every element of the main script (MIDI MAP.py), So instead of just PLAY = (data number) i want PLAY = (MIDI CHANNEL, Data Number). A big big thank you in advance and thank you if someone could even point me in the right direction as i am keen on learning about python.

Python Script Link

Attached Files

.py   SpecialZoomingComponent.py (Size: 2.19 KB / Downloads: 61)
.py   SpecialViewControllerComponent.py (Size: 10.08 KB / Downloads: 52)
.py   SpecialTransportComponent.py (Size: 11.1 KB / Downloads: 63)
.py   SpecialSessionComponent.py (Size: 1.97 KB / Downloads: 41)
.py   SpecialMixerComponent.py (Size: 562 bytes / Downloads: 43)
Reply
#5
Oh my bad, i had to break it into two replies due to the max attachments being 5 items. Here you go though!

Thank you
Reply
#6
Not attachments. Recognize none of us want to risk a virus by opening attachments. Use the blue and yellow Python tags and paste the relevant code between the tags
Reply
#7
Once you post the code (in tags) this should not be terribly hard. Recognize that a midi note on message includes the note number, velocity, and channel. So, you might want to get and use the velocity as well. It is likely your script is using a default velocity (commonly 64)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to bind a midi signal to tkinter? philipbergwerf 1 1,618 Feb-09-2022, 05:17 PM
Last Post: Gribouillis
  mido MIDI-file; how to distinguis tracks? philipbergwerf 2 2,275 Dec-10-2021, 05:06 PM
Last Post: philipbergwerf
  How to open MIDI-file and get events in a list? philipbergwerf 7 5,024 May-29-2021, 08:24 AM
Last Post: j.crater
  Mido and virtual midi ports dore_m 2 4,637 Dec-27-2020, 06:02 AM
Last Post: dore_m
  MIDI FILES TEMPO - MIDO Tetsuo30 9 5,020 Sep-06-2020, 08:17 PM
Last Post: jefsummers
  mapping joystick axis to specific 'channels' in python DashOrion 1 2,628 Jul-07-2020, 04:26 PM
Last Post: DashOrion
  Real time MIDI with python eythoralex 1 3,477 May-19-2020, 07:17 PM
Last Post: Larz60+
  Please help! Akai APC20 midi controller script versusliveact 0 2,145 Feb-14-2020, 05:37 AM
Last Post: versusliveact
  Adding markers to Folium map only adding last element. tantony 0 2,133 Oct-16-2019, 03:28 PM
Last Post: tantony
  [split] building a transition matrix for ion channels satyam2007 1 1,540 Jul-31-2019, 04:20 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020