Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: dj controller no real preamp #2138771
    Michael Smith
    Participant

    Looks like I’m doing option 2 for now, which maybe later I’ll turn in to option 4. 🙂

    Actually I realized that I can do a ton of stuff with this, like pausing and unpausing iTunes, setting the volume inside of iTunes, and even turning on and off lights on the mixTrack. I’m building the applescript to do more, but so far it looks like this:

    on runme(message)
    	if (item 1 of message = 176) and (item 2 of message = 23) and (item 3 of message > 0) then
    		set volume output volume ((item 3 of message) * 0.78)
    	end if
    	if (item 1 of message = 176) and (item 2 of message = 22) and (item 3 of message > 0) then
    		tell application "iTunes"
    			set sound volume to ((item 3 of message) * 0.78)
    		end tell
    	end if
    if (item 1 of message = 144) and (item 2 of message = 59) and (item 3 of message > 0) then
    		tell application "iTunes"
    			playpause
    			if player state is playing then
    				return {144,59,127}
    			else
    				return {144,59,0}
    			end if
    		end tell
    	end if	
    end runme

    The return message is then passed back to the mixTrack to turn the play button light on or off based on if the music is playing.

    in reply to: dj controller no real preamp #2138561
    Michael Smith
    Participant

    What I’ve done so far.. it took several hours of googling and testing to figure this out…

    I installed SoundFlower and set the 2 track to be my sound output. That at least gives me a volume control which setting the output to the MixTrack doesn’t.

    Then in SoundFlowerBed, which is a menu bar app, I set the output of the SoundFlower 2 track to the input of the MixTrack. Now I can set the volume going out using the main mac volume slider.

    Next I installed MidiPipe. I created a pipe that reads the main volume slider on the MixTrack and sends the values to an applescript. The script looks like this:

    on runme(message)
    if (item 1 of message = 176) and (item 2 of message = 23) and (item 3 of message > 0)
    then set volume output volume (item 3 of message)
    end runme

    And now my slider changes the mac volume. Things aren’t blasting loud any more. The only thing is that MidiPipe has to be running all the time for that pipe to work. And FlowerBed has to be running to hear anything.

Viewing 2 posts - 1 through 2 (of 2 total)