Skip to content

Instantly share code, notes, and snippets.

@Sciss
Created February 11, 2014 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sciss/8932481 to your computer and use it in GitHub Desktop.
Save Sciss/8932481 to your computer and use it in GitHub Desktop.
case class stream(key: String)
implicit class DiskInStream(peer: DiskIn.type) {
def ar(stream: stream, loop: GE = 0): DiskIn = DiskIn.ar(1, 0, loop) // (test placeholder)
}
DiskIn.ar(stream("foo")) // phew, "overloading" works
@Sciss
Copy link
Author

Sciss commented Feb 11, 2014

Arg, this works:

VDiskIn.ar(stream("foo"), 0.5)

but this doesn't:

VDiskIn.ar(stream("foo"), speed = 0.5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment