[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference napalm::commusic_v1

Title:* * Computer Music, MIDI, and Related Topics * *
Notice:Conference has been write-locked. Use new version.
Moderator:DYPSS1::SCHAFER
Created:Thu Feb 20 1986
Last Modified:Mon Aug 29 1994
Last Successful Update:Fri Jun 06 1997
Number of topics:2852
Total number of notes:33157

2475.0. "ATARI - MIDI - STOS" by OPG::CHRIS (Capacity! What Capacity ?) Tue Oct 23 1990 09:42

    
    	Hello,
    
    		Can anyone help ?
    
    	I am trying the communicate with MIDI equipment using an
    	Atari 520 STFM and a Casio MT-240.
    
    	I am using the STOS programming langauage and I am trying to
    	output to the Casio the notes it can play, i.e.,
    
    
    	1000 OPEN #1, "MIDI"
    	1100 FOR A=0 TO 127
    	1110 PRINT #1,CHR$(144)+CHR$(A)+CHR$(64)
    	1120 WAIT 10
    	1130 NEXT A
    
    	I run this and all that happens is that the same note plays
    	each time.
    
    	I have also tried just sending the CHR$(144) which means note
    	on and that plays one of two notes each time I send it.
    
    	Can anyone enlighten me on what I am doing wrong please ?
    
    
    
    	Chris
    
    	Notes: chrs$(144) = Channel 1 note on
    	       chrs$(A) = Note Number
    	       chrs$(64) = Velocity
    
T.RTitleUserPersonal
Name
DateLines
2475.1NOTE OFF?NIOMAX::LAINGSoft-Core Cuddler*Jim Laing*282-1476Tue Oct 23 1990 10:445
    Maybe you need to send a NOTE OFF after each note ON that you send???
    
    -Jim (just guessing ...)
    
    
2475.2OR NOTE ON WITH V=0TROA01::HITCHMOUGHTue Oct 23 1990 13:3511
    Agree with -1, should send note off after note on (or note on with
    velocity of 0, depending on SGU)
    
    You may not have to keep sending the note on or note off as some units
    keep whats called "ru nning status" but I'd send them anyway.
    
    I also think tht wait 10 would be far to fast..I don'tknow the ATARI
    though so I could be wrong.
    
    Ken
    
2475.3Thanks so FarOPG::CHRISCapacity! What Capacity ?Wed Oct 24 1990 08:334
    Thanks for the info I will try.  Thw wait 10 is 10x 1/50 of a second.
    
    
    Chris
2475.4Longer waitTROA01::HITCHMOUGHWed Oct 24 1990 08:595
    You will probably need a MUCH longer wait in between the note on and
    note-off else you'll probably only get blips.
    
    Ken