Skip to content

Commit

Permalink
fix KEYOUT
Browse files Browse the repository at this point in the history
  • Loading branch information
vizicist committed Feb 5, 2023
1 parent d319d18 commit f274da2
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 77 deletions.
2 changes: 1 addition & 1 deletion data_omnisphere/config/paramenums.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"quantstyle": [ "none", "frets", "fixed", "pressure" ],
"volstyle": [ "fixed", "pressure" ],
"shape": [ "line", "triangle", "square", "circle" ],
"midiinput": [ "" ],
"midiinput": [ "microKEY2 Air", "" ],
"movedir": [ "cursor", "left", "right", "up", "down", "random", "random90", "updown", "leftright" ],
"rotangdir": [ "right", "left", "random" ],
"mirror": [ "none", "vertical", "horizontal", "four" ],
Expand Down
6 changes: 3 additions & 3 deletions data_omnisphere/keykit/liblocal/keylib.k
Original file line number Diff line number Diff line change
@@ -1,8 +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
#library keylocal.k keylocal
#library keylocal.k localprerc
#library keylocal.k localpostrc
2 changes: 1 addition & 1 deletion data_omnisphere/keykit/liblocal/keylocal.k
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function keylocal() {
addpostrc(global(localpostrc))

# Inittask = remotecons(4444) # would start remote console on port 4444
# Inittask = palette_listen()
Inittask = palette_listen()
}

function localprerc() {
Expand Down
62 changes: 0 additions & 62 deletions engine/input.go

This file was deleted.

9 changes: 8 additions & 1 deletion engine/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,14 @@ func KeykitProcessInfo() *ProcessInfo {
if keyoutput == "" {
keyoutput = DefaultKeykitOutput
}
os.Setenv("KEYOUTPUT", keyoutput)
os.Setenv("KEYOUT", keyoutput)

// Allow parameter to override keyoutput
keyallow := TheEngine.Get("engine.keyallow")
if keyallow == "" {
keyallow = "127.0.0.1"
}
os.Setenv("KEYALLOW", keyallow)

// Allow parameter to override path to key.exe
fullpath := TheEngine.Get("engine.keykit")
Expand Down
19 changes: 10 additions & 9 deletions engine/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package engine
import (
"encoding/json"
"fmt"
"os"
"strconv"
"strings"
"sync"
Expand Down Expand Up @@ -80,15 +79,17 @@ func NewRouter(cm *CursorManager) *Router {
r.midiInputChan = make(chan MidiEvent)
// r.recordingOn = false

r.myHostname = os.Getenv("PALETTE_HOSTNAME")
if r.myHostname == "" {
hostname, err := os.Hostname()
if err != nil {
LogError(err)
hostname = "unknown"
/*
r.myHostname = os.Getenv("PALETTE_HOSTNAME")
if r.myHostname == "" {
hostname, err := os.Hostname()
if err != nil {
LogError(err)
hostname = "unknown"
}
r.myHostname = hostname
}
r.myHostname = hostname
}
*/

// By default, the engine handles Cursor events internally.
// However, if publishcursor is set, it ONLY publishes them,
Expand Down

0 comments on commit f274da2

Please sign in to comment.