Skip to content

Instantly share code, notes, and snippets.

@danielmkarlsson
Created August 26, 2021 08:56
Show Gist options
  • Select an option

  • Save danielmkarlsson/8d367b0089546879e378c27615df5e50 to your computer and use it in GitHub Desktop.

Select an option

Save danielmkarlsson/8d367b0089546879e378c27615df5e50 to your computer and use it in GitHub Desktop.
An error has occured.
// I ran this which yielded the below error.
(
Pdef(0,
Pbind(*[
type: \cln,
snd: \mmd,
])
).play
)
ERROR: Message 'asInteger' not understood.
RECEIVER:
nil
ARGS:
PATH: /Users/danielmkarlsson/SuperClean-code/Patterns-in-SuperCollider-with-SuperClean/001-boilerplate.scd
PROTECTED CALL STACK:
Meta_MethodError:new 0x11e4bc5c0
arg this = DoesNotUnderstandError
arg what = nil
arg receiver = nil
Meta_DoesNotUnderstandError:new 0x11e4be900
arg this = DoesNotUnderstandError
arg receiver = nil
arg selector = asInteger
arg args = [ ]
Object:doesNotUnderstand 0x11d547880
arg this = nil
arg selector = asInteger
arg args = nil
CleanSoundLibrary:getEvent 0x120168240
arg this = a CleanSoundLibrary
arg name = mmd
arg index = nil
var allEvents = [ ( 'bufNumChannels': 1, 'hash': 878918184, 'instrument': clean_sample_1_2, 'bufNumFrames': 88200,
'note': 0, 'buffer': 0, 'unitDuration': a Function ), ( 'bufNumChannels': 1, 'hash': -862034905, 'instrument': clean_sample_1_2, 'bufNumFrames': 88200,
'note': 0, 'buffer': 1, 'unitDuration': a Function ), ( 'bufNumChannels': 1, 'hash': 1682809616, 'instrument': clean_sample_1_2, 'bufNumFrames': 529200,
'note': 0, 'buffer': 6, 'unitDuration': a Function ), ( 'bufNumChannels': 1, 'hash': -534456292, 'i...etc...
CleanEvent:mergeSoundEvent 0x11e3a90c0
arg this = a CleanEvent
var soundEvent = nil
a FunctionDef 0x11e3a85c0
sourceCode = "<an open Function>"
a FunctionDef 0x12067ca80
sourceCode = "<an open Function>"
Function:prTry 0x11ecf7240
arg this = a Function
var result = nil
var thread = a Routine
var next = a Function
var wasInProtectedFunc = true
Function:protect 0x11ecf67c0
arg this = a Function
arg handler = a Function
var result = nil
Environment:use 0x12067c600
arg this = ( 'server': localhost, 'snd': mmd, 'delta': 1.0, 'type': cln,
'latency': 0.3 )
arg function = a Function
var result = nil
var saveEnvir = ( 'server': localhost, 'snd': mmd, 'delta': 1.0, 'type': cln,
'latency': 0.3 )
CleanEvent:play 0x11e3a8380
arg this = a CleanEvent
CleanAux:value 0x1203a6a80
arg this = a CleanAux
arg event = ( 'server': localhost, 'snd': mmd, 'delta': 1.0, 'type': cln,
'latency': 0.3 )
a FunctionDef 0x1206d73c0
sourceCode = "#{
var tempo, server, eventTypes, parentType;
parentType = ~parentTypes[~type];
parentType !? { currentEnvironment.parent = parentType };
server = ~server = ~server ? Server.default;
~finish.value(currentEnvironment);
tempo = ~tempo;
tempo !? { thisThread.clock.tempo = tempo };
if(currentEnvironment.isRest.not) {
eventTypes = ~eventTypes;
(eventTypes[~type] ?? { eventTypes[\\note] }).value(server)
};
~callback.value(current...etc..."
var tempo = nil
var server = localhost
var eventTypes = ( 'fadeBus': a Function, 'freeAllocWrite': a Function, 'tree': a Function, 'on': a Function,
'load': a Function, 'freeBuffer': a Function, 'group': a Function, 'freeAllocRead': a Function, 'allocWrite': a Function,
'cue': a Function, 'grain': a Function, 'Synth': a Function, 'freeAllocWriteID': a Function, 'alloc': a Function,
'rest': a Function, 'sine2': a Function, 'sine1': a Function, 'midi': a Function, 'set': a Function,
'setProperties': a Function, 'parGroup': a Function, 'cln': a Function...etc...
var parentType = nil
a FunctionDef 0x12067ca80
sourceCode = "<an open Function>"
Function:prTry 0x11ecf7240
arg this = a Function
var result = nil
var thread = a Routine
var next = nil
var wasInProtectedFunc = true
CALL STACK:
DoesNotUnderstandError:reportError
arg this = <instance of DoesNotUnderstandError>
Nil:handleError
arg this = nil
arg error = <instance of DoesNotUnderstandError>
Thread:handleError
arg this = <instance of Thread>
arg error = <instance of DoesNotUnderstandError>
Thread:handleError
arg this = <instance of Routine>
arg error = <instance of DoesNotUnderstandError>
Object:throw
arg this = <instance of DoesNotUnderstandError>
Function:protect
arg this = <instance of Function>
arg handler = <instance of Function>
var result = <instance of DoesNotUnderstandError>
Environment:use
arg this = <instance of Event>
arg function = <instance of Function>
var result = nil
var saveEnvir = <instance of Environment>
Event:play
arg this = <instance of Event>
Event:playAndDelta
arg this = <instance of Event>
arg cleanup = <instance of EventStreamCleanup>
arg mute = false
EventStreamPlayer:prNext
arg this = <instance of EventStreamPlayer>
arg inTime = 26.0
var nextTime = nil
var outEvent = <instance of Event>
< FunctionDef in Method EventStreamPlayer:init >
arg inTime = 26.0
Routine:prStart
arg this = <instance of Routine>
arg inval = 26.0
^^ ERROR: Message 'asInteger' not understood.
RECEIVER: nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment