This file contains hidden or 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
package de.sciss.synth | |
package ugen | |
import UGenSource._ | |
object SinOsc { | |
def kr: SinOsc = kr() | |
def kr(freq: GE = 440.0f, phase: GE = 0.0f): SinOsc = new SinOsc(control, freq, phase) | |
This file contains hidden or 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
class HasRange[U](val lo: Float, val hi: Float) | |
object HasRange { | |
implicit def SinOscHasRange = new HasRange[SinOsc ](-1, +1) | |
implicit def ImpulseHasRange = new HasRange[Impulse]( 0, +1) | |
} | |
implicit class GERangeOps[U <: GE](in: U) { | |
def range(lo: GE = 0f, hi: GE = 1f)(implicit r: HasRange[U]): GE = | |
in.linlin(r.lo, r.hi, lo, hi) | |
def exprange(lo: GE = 0.01f, hi: GE = 1f)(implicit r: HasRange[U]): GE = |
This file contains hidden or 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
#!/usr/bin/python3 | |
import quick2wire.i2c as i2c | |
import time | |
import RPi.GPIO as GPIO | |
import alsaaudio | |
import threading | |
import logging | |
import sys | |
#Work in progress library for Si473x for Raspberry Pi by Jonathan Thorpe <[email protected]> |
This file contains hidden or 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
Size 983 bytes | |
MD5 checksum 245f56b570e1460bd64b7d26b9a04f03 | |
Compiled from "<console>" | |
public class $line3.$read$$iw$$iw$Test | |
minor version: 0 | |
major version: 52 | |
flags: ACC_PUBLIC, ACC_SUPER | |
Constant pool: | |
#1 = Utf8 $line3/$read$$iw$$iw$Test | |
#2 = Class #1 // $line3/$read$$iw$$iw$Test |
This file contains hidden or 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
package slickdemo | |
import scala.reflect.macros.Context | |
import scala.language.experimental.macros | |
object Macros { | |
// scala.reflect.runtime.currentMirror | |
// universe.reify |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
[ 31%] Building CXX object external_libraries/CMakeFiles/oscpack.dir/oscpack_build.cpp.o | |
[ 31%] Linking CXX static library liboscpack.a | |
[ 31%] Built target oscpack | |
Scanning dependencies of target libsupernova | |
[ 31%] Building CXX object server/supernova/CMakeFiles/libsupernova.dir/sc/sc_synth_definition.cpp.o | |
In file included from /home/hhrutz/Documents/devel/supercollider/external_libraries/boost/boost/config.hpp:39:0, | |
from /home/hhrutz/Documents/devel/supercollider/external_libraries/boost/boost/filesystem/operations.hpp:18, | |
from /home/hhrutz/Documents/devel/supercollider/server/supernova/sc/sc_synth_definition.cpp:22: | |
/home/hhrutz/Documents/devel/supercollider/external_libraries/boost/boost/config/compiler/gcc.hpp:95:45: error: expected identifier before numeric constant | |
#define BOOST_LIKELY(x) __builtin_expect(x, 1) |
This file contains hidden or 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
// cf. http://www.artima.com/scalazine/articles/stackable_trait_pattern.html | |
trait Request { | |
type Response | |
} | |
trait Context { | |
def handle[R](req: Request { type Response = R }): R | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
object ConvertToMp3 { | |
import de.sciss.file._ | |
def example(): Unit = { | |
val baseDir = userHome / "sysson"/"bounce" | |
val baseIn = baseDir / "WegC_170508-bounce" | |
val baseOut = baseDir / "WegC_170508-bounce-mp3" | |
convertRecursively(baseIn, baseOut)({ case fIn if fIn.ext == "aif" => fIn.replaceExt("mp3").name }) { (fIn, fOut) => | |
import sys.process._ | |
val title = fIn.base |