overtone/overtone — Issue #27: "/dumpOsc 1" causes odd server behavior
Author: neatonk
Created: 2011-10-08 13:41:25+00:00
State: open

Sending "/dumpOsc 1" or "/dumpOsc 3" to the scsynth server causes odd behavior with overtone samples defined using 'defsample'. Sending "/dumpOsc 0" or "/dumpOsc 2" make the odd behavior go away. Not sure if this is an issue with overtone or sc, but found no bug in sc's [issue tracker.] (http://sourceforge.net/search/index.php?group_id=54622&type_of_search=artifact&q=dumpOSC&group_artifact_id%5B%5D=474248&artifact_id=&status_id%5B%5D=1&status_id%5B%5D=2&status_id%5B%5D=3&status_id%5B%5D=4&submitted_by=&assigned_to=&open_date_start=&open_date_end=&last_update_date_start=&last_update_date_end=&form_submit=Search)

To reproduce the issue...

Start a live coding session using emacs/slime and cake/swank in a dummy project 'foo'...

```clojure
(ns foo
(:use [overtone.live]))
```

Load 2 samples using defsample...

```clojure
(defsample kik "samples/kik.wav")
(defsample snr "samples/snr.wav")
```
This works as expected...

```clojure
(kik) ; plays kik.wav
(snr) ; plays snr.wav
```

Send dumpOsc message to the server...

```clojure
(snd "/dumpOSC" 1)
```

Odd behavior begins

```clojure
(kik) ; plays kik.wav
(snr) ; plays kik.wav
(kik 1.1) ; no sound
(snr 1 0 0 0.5) ; no sound
```

Send dumpOsc message to the server...

```clojure
(snd "/dumpOSC" 0)
```

Everything is back to normal...

```clojure
(kik) ; plays kik.wav
(snr) ; plays snr.wav
(kik 2) ; plays kik.wav an octave up
(snr 1 0 0 0.5) ; plays snr.wav at 50% volume.
```