keep midi note names in numbox???

Sep 1, 2006 at 9:59am

keep midi note names in numbox???

hi

_i have numboxes set to display the incoming (midi-)notes as Midi
notes names (A5, C4 etc)

_then i want to pack them (as chords) and display them in a message
box – so i can read the names of the chord – with any kind of other
value it is simple, pack -> prepend set -> message box

_however in this case the pack object converts the note names in
their midi note _numbers_ – sprintf does the same; or how i
understand it teh numbox, set to “midi note names”, outputs the midi
numbers – instead of G5 F#5, i have 91 90….

_is there a way to keep the midi note names???

many thanks

kasper

Kasper T. Toeplitz
noise, composition, bass, computer

http://www.sleazeArt.com

#27422
Sep 1, 2006 at 11:02am

dont know if theres a way to keep it but it shouldnt take you more than 5 minutes to derive pitch and pitch class (if these terms are correct?) with [/ 12] and [% 12] and bang the right msg boxes to make 91 to G5…

p

Kasper T Toeplitz wrote:
> hi
>
> _i have numboxes set to display the incoming (midi-)notes as Midi notes
> names (A5, C4 etc)
>
> _then i want to pack them (as chords) and display them in a message box
> – so i can read the names of the chord – with any kind of other value it
> is simple, pack -> prepend set -> message box
>
> _however in this case the pack object converts the note names in their
> midi note _numbers_ – sprintf does the same; or how i understand it teh
> numbox, set to “midi note names”, outputs the midi numbers – instead of
> G5 F#5, i have 91 90….
>
> _is there a way to keep the midi note names???
>
> many thanks
>
> kasper

#82971
Sep 1, 2006 at 11:11am

>dont know if theres a way to keep it but it shouldnt take you more
>than 5 minutes to derive pitch and pitch class (if these terms are
>correct?) with [/ 12] and [% 12] and bang the right msg boxes to
>make 91 to G5…

of course you are right

just feels a little dumb to do the conversion when it “seems” to be
already included in the object..

thanks

kasper

Kasper T. Toeplitz
noise, composition, bass, computer

http://www.sleazeArt.com

#82972
Sep 1, 2006 at 4:24pm

On 1-Sep-2006, at 13:11, Kasper T Toeplitz wrote:

> just feels a little dumb to do the conversion when it “seems” to be
> already included in the object..

Just that numbox isn’t converting anything. It receives integers and
sends out integers. It’s *displaying* MIDI note names when you ask it
to, but it still sends out integers that you can add, subtract,
multiply, or send to any other Max object that deals with ints.

– P.

————– http://www.bek.no/~pcastine/Litter/ ————-
Peter Castine +–> Litter Power & Litter Bundle for Jitter
Universal Binaries on the way
iCE: Sequencing, Recording &
Interface Building for |home | chez nous|
Max/MSP Extremely cool |bei uns | i nostri|
http://www.dspaudio.com/ http://www.castine.de

#82973
Sep 1, 2006 at 4:58pm

>On 1-Sep-2006, at 13:11, Kasper T Toeplitz wrote:
>
>>just feels a little dumb to do the conversion when it “seems” to be
>>already included in the object..
>
>Just that numbox isn’t converting anything. It receives integers and
>sends out integers. It’s *displaying* MIDI note names when you ask
>it to,

sure

but (as far as i understand it) if it _displays_ the midi note name,
it still means that it does the conversion… either by some sort of
(simple) logic (/12, %12) or because of a fixed conversion table or
or or

I did notice that numbox receives and sends integers – just thought
than, since it can _display_ the midi note name of any integer
(smaller than 128) it could somehow _send_ it as well

not that is vital (as said it is easy to do the conversion) – but seems logical

best

kasper

Kasper T. Toeplitz
noise, composition, bass, computer

http://www.sleazeArt.com

#82974
Sep 1, 2006 at 10:15pm

On 1-Sep-2006, at 18:58, Kasper T Toeplitz wrote:

> but (as far as i understand it) if it _displays_ the midi note
> name, it still means that it does the conversion…

C’est vrai.

I suppose there would be some use for an additional outlet that would
send the value-formatted-as-a-symbol. Or an attribute that would
switch between sending the integer value and a formatted symbol. But
I guess that wasn’t considered important when the object was first
built.

– P.

————– http://www.bek.no/~pcastine/Litter/ ————-
Peter Castine +–> Litter Power & Litter Bundle for Jitter
Universal Binaries on the way
iCE: Sequencing, Recording &
Interface Building for |home | chez nous|
Max/MSP Extremely cool |bei uns | i nostri|
http://www.dspaudio.com/ http://www.castine.de

#82975
Nov 8, 2008 at 11:29pm

Quote: Peter Castine wrote on Fri, 01 September 2006 23:15
—————————————————-

I suppose there would be some use for an additional outlet that would
> send the value-formatted-as-a-symbol. Or an attribute that would
> switch between sending the integer value and a formatted symbol. But
> I guess that wasn’t considered important when the object was first
> built.

I just so happen to have such a use now! This was an old thread…has anyone ever figured out if this is possible?

#82976
Nov 9, 2008 at 12:15am

If I understand, the answer is “make your own Pitch Class converter”?
Or, is there any built abstraction somewhere?

#82977
Nov 9, 2008 at 12:16am

I guess so…just went ahead and built it myself…

– Pasted Max Patch, click to expand. –
#82978
Nov 9, 2008 at 12:25am

hi hi hi,

#82979
Nov 9, 2008 at 12:52am

You could just store the C-B note names in a [coll] and use [- 2] on the other side for the octaves.

lh

– Pasted Max Patch, click to expand. –
#82980
Nov 9, 2008 at 1:13am

Oops, I forgot a “0″ in there somewhere. This should do the trick.

lh

– Pasted Max Patch, click to expand. –
#82981
Nov 9, 2008 at 10:30am

Luke schrieb:
> You could just store the C-B note names in a [coll] and use [- 2] on
> the other side for the octaves.

I would get rid of the split (there are more notes in the universe than
Midi can deal with) and would give the coll a real fixed name like
“MyUniqueCollectionOfNoteNames”, no need to reload the same data with
each instantiation. A #0 only makes sense if it would need to be
different in each instantiation…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#82982

You must be logged in to reply to this topic.