the dial object in Max Msp…help!!

Jan 25, 2006 at 11:02am

the dial object in Max Msp…help!!

Hello everyone my name is Alex and i’m very new to Max Msp, i have read through the help files and looked on the forum but what i need to do doesn’t seem to be explained anywhere or i’m stupid …probably the later but either way if any one can help me here is my problem.

I am currently doing a project for my degree in music production using MaxMsp 4.5 and jitter 1.5 and i proposed to build a virtual record deck that you can load an mp3 in to and scratch with it but this will be intergrated with jitter to perform changes in effects on the video screen acording to locations that you scratch on the deck, i also want the dial object to act as a real deck so when you release the dial the tune keeps playing untill you grab it again and start scratching in a different location.

as far as i’m aware the dial( what i will use as a deck) can only output the numbers from 1 to 100 in one box or from 1 to 100 in a sequence of boxes but they all change at the same time so when you move the dial to say number 20 all the boxes say number 20, i think what i need to do is have effects 1 play at 10 effects 2 play at 30 effects 3 play at 50 etc
so i need box 1 to get to 10 and stay at 10 then box 2 to get to 30 and stay a 30 etc and i need the effects to know they should play when it recieves a certain number so if it recieves the number 10 it will trigger the effect untill it sees a number 30 which is the next effect.

any ideas on how to lock the numbers in the boxes or a better easier way of doing what i need to do will be greatly appreciated, thankyou for taking the time to read my post.

Alex

#24089
Jan 25, 2006 at 11:16am

I don’t really understand what you want to do, maybe add a patch.
either way, it sounds like you need to take a look at the split, scale and sel objects. (don’t forget you can alt click for helpfiles)
you can often set properties like this in the get info window.

btw in one of the jitter tutorials you can use a jit.window as a turntable like controller, much cooler then dial ; )

#69146
Jan 25, 2006 at 11:36am

>s far as i’m aware the dial( what i will use as a deck) can only output the numbers from 1 to 100 in one box or from 1 to 100 in a sequence of boxes

I’m not sure it totally understand you here, but if you select the dial object in an unlocked patcher window and then press Apple + I you will see the dial Inspector window where you can set the objects appearance and output options (look at output range, offset, and multiplier) – Many of the objects in max have very useful inspector windows. Apple + I is a basic Max skill – have you done the Tutorials?

#69147
Jan 25, 2006 at 1:41pm

wow…. what the hell?

#69148
Jan 26, 2006 at 11:34am

thanks for your posts everyone, i have decided that as a begginer max user that the project i will undertake is a bit out of my league at least for now.

instead i will make a soundtoy which you can use in conjunction with a record deck, you can load an mp3 into the buffer or input any sound source via your soundcard and select audio affects from 1 to 10 and when you select the effect you also select a matching video effect in jitter for the visual output for example a distortion effect on the audio will relate to more noise on the video, the more you increase the audio effect the more it increases the video effect, i will also allow you to have more than one effect on at a time which would also merge the video effects together, or for more destructive control there will be a slider to slect the audio effects or just the video effects and tempo control.

i think everyone would agree that that is a more acomplishable project….i hope lol

#69149
Jan 27, 2006 at 9:37pm

You’d probably need a separate dial for each number box — otherwise you have to have a way to switch which box the dial affects (using a gate). The standard values for the dial are zero to 127, but you can of course tweak that with a calculation after it’s generated.

By the way, are you using some kind of external MIDI controller? I have one from M-Audio, it’s got eight faders, 24 knobs, buttons, and couldn’t be more simple and fun to use. About $200. Your ideas will increase exponentially once you get away from the mouse!

-CJ

#69150
Jan 27, 2006 at 10:30pm

i have been thinking about getting an external MIDI controler in addition to my MIDI synth that has only 6 control knobs for MIDI but the funds are low at the moment what with being a student.

i am beginning to understand the mathematical operations in Max but maths isn’t my strong point and i don’t understand certain operations such as cos sin tan, i know they are used a lot for all sorts of things but i don’t think i will have to use them to do what i need to do, i can imagine though that i could make things a lot more exciting with greater knowledge.

#69151
Jan 27, 2006 at 11:05pm

here’s a sample patch I cooked up. see if it helps give you some new ideas. remember that if you change the right inlet value of a multiplier or other arithmetic box, the calculation won’t be triggered automatically. you can set it and then bang it if that’s what you want. sometimes you do, other times it’s nice to set it and wait.

cheers!

p.s. Math is your FRIEND…….. ;)

———————————————————-

max v2;
#N vpatcher 15 55 940 507;
#P window setfont “Sans Serif” 12.;
#P window linecount 7;
#P comment 417 182 180 9109516 Check out the Get Info on all these knobs. Left is standard , next has a multiplier built-in , next has an offset , then the two yellow ones use a post-dial multiplier to alter the value–one integer , one decimal.;
#P flonum 639 152 58 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 671 93 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 639 115 27 9109516 * 1.;
#P user dial 644 41 40 40 128 1 0 0 159 270 1 1. 254 226 22 220 220 220 119 119 119 224 224 224 0 0 0 0 0 0;
#P number 562 92 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 530 114 27 9109516 * 1;
#P user dial 535 40 40 40 128 1 0 0 159 270 1 1. 254 226 22 220 220 220 119 119 119 224 224 224 0 0 0 0 0 0;
#P user dial 481 42 40 40 128 1 100 0 159 270 1 1. 155 178 254 220 220 220 119 119 119 224 224 224 0 0 0 0 0 0;
#P user dial 421 43 40 40 128 8 0 0 159 270 1 1. 254 155 155 220 220 220 119 119 119 224 224 224 0 0 0 0 0 0;
#P user dial 364 44 40 40 128 1 0 0 159 270 1 1. 170 170 170 221 221 221 120 120 120 225 225 225 0 0 0 0 0 0;
#P number 531 145 50 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 467 123 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 412 122 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 356 125 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 85 74 53 9109516 gate 4;
#P number 263 116 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 198 118 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 143 117 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 87 120 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 85 31 40 9109516 ctlin 7;
#P window linecount 14;
#P comment 33 160 217 9109516 Here’s where your controller values could come in. They could be knobs , faders , buttons… Notice the connections: the “ctlin 7″ means it only gets controller $7 (usually volume). The right outlet is for the MIDI channel , which then sets the gate value and sends the controller value to the corresponding box. If you don’t know what controller number you’re using , just use “ctlin” without any arguments.;
#P window linecount 9;
#P comment 727 46 100 9109516 You can see that you can make the multiplier amount controllable too… or use division…or addition…or or or….. ; );
#P connect 2 1 7 0;
#P connect 7 0 3 0;
#P connect 2 0 7 1;
#P connect 7 1 4 0;
#P connect 7 2 5 0;
#P connect 7 3 6 0;
#P connect 12 0 8 0;
#P connect 13 0 9 0;
#P connect 14 0 10 0;
#P connect 15 0 16 0;
#P connect 16 0 11 0;
#P connect 17 0 16 1;
#P connect 18 0 19 0;
#P connect 19 0 21 0;
#P connect 20 0 19 1;
#P pop;

#69152

You must be logged in to reply to this topic.