-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
put windows paths in windows.go, integrate keykit
- Loading branch information
Showing
26 changed files
with
323 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ _Current.json | |
_Current_*.json | ||
CurrentSnapshot.* | ||
CurrentQuad.* | ||
last.kp | ||
*.pyc | ||
*.suo | ||
default/logs/*.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#library keylocal.k keylocal | ||
#library keylocal.k localprerc | ||
#library keylocal.k localpostrc | ||
#library palette.k palette_kill | ||
#library palette.k palette_listen | ||
#library palette.k palette_listen_task | ||
#library palette.k palette_send | ||
#library palette.k palette_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# To control your local configuration, you can create a file | ||
# named c:\keylocal.k (ie. in the root directory of the drive you | ||
# are running keykit from), and put a function keylocal() in it. | ||
# That function will be executed when keykit starts, and you | ||
# can set things like the default MIDI input/output ports, etc. | ||
# | ||
# This is a sample. You should copy this file to c:\keylocal.k | ||
# and then edit it as needed. The Contribdir, if set, is where things | ||
# like GeoMaestro will be located. | ||
|
||
function keylocal() { | ||
|
||
Contribdir = "c:\\contrib" | ||
|
||
# You can add (multiple) things to be executed at the beginning and | ||
# end of the boot process, by using addprerc and addpostrc, like this: | ||
addprerc(global(localprerc)) | ||
addpostrc(global(localpostrc)) | ||
|
||
# Inittask = remotecons(4444) # would start remote console on port 4444 | ||
# Inittask = palette_listen() | ||
} | ||
|
||
function localprerc() { | ||
# This would get executed at the beginning of keyrc() | ||
} | ||
|
||
function localpostrc() { | ||
# This would get executed at the end of keyrc() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# These are routines used by the Space Palette | ||
|
||
PaletteListenAddress = "[email protected]" | ||
PaletteListenConnection = 0 | ||
PaletteSendAddress = "[email protected]" | ||
PaletteSendConnection = 0 | ||
PaletteListenTask = 0 | ||
|
||
function palette_kill() { | ||
print("Killing listen task") | ||
kill(PaletteListenTask) | ||
PaletteListenTask = 0 | ||
} | ||
|
||
function palette_listen() { | ||
if ( PaletteListenTask != 0 ) { | ||
print("Palette listener already running.") | ||
return() | ||
} | ||
PaletteListenTask = task palette_listen_task() | ||
} | ||
|
||
function palette_listen_task() { | ||
if ( PaletteListenConnection == 0 ) { | ||
PaletteListenConnection = open(PaletteListenAddress,"rA","osc_listen") | ||
if ( PaletteListenConnection < 0 ) { | ||
print("Palette: unable to open ",PaletteListenAddress) | ||
print("Palette: perhaps another process is listening on ",PaletteListenAddress) | ||
return() | ||
} | ||
} | ||
while ( (d = get(PaletteListenConnection)) != Eof ) { | ||
print("Palette sent to keykit:",string(d)) | ||
} | ||
} | ||
|
||
function palette_send(msg) { | ||
if ( PaletteSendConnection == 0 ) { | ||
print("Opening connection to Palette: ",PaletteSendAddress) | ||
PaletteSendConnection = open(PaletteSendAddress,"wb","osc_send") | ||
} | ||
print("Sending to Palette:",msg) | ||
mdep("osc","send",PaletteSendConnection,msg) | ||
} | ||
|
||
function palette_test() { | ||
msg = [0="/api",1="{\"api\":\"engine.sprite\",\"x\":\"0.3\",\"y\":\"0.4\",\"z\":\"0.5\"}"] | ||
palette_send(msg) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.