Skip to content

Commit

Permalink
Ndef: add .hardClear, make .clear softer, so proxyspaces survive
Browse files Browse the repository at this point in the history
  • Loading branch information
adcxyz committed Jan 10, 2025
1 parent 4c09d62 commit f1500b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion HelpSource/Classes/Ndef.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ method::kr
equivalent to code::*new(key).kr(numChannels, offset):: (see link::Classes/BusPlug#-kr::)

method::clear
clear all proxies
clear all proxies (in all proxyspaces)

method::hardClear
clear all proxies and remove all existing proxyspaces

method::defaultServer
set the default server (default: code::Server.default::)
Expand Down
4 changes: 4 additions & 0 deletions SCClassLibrary/JITLib/ProxySpace/NodeProxy.sc
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,10 @@ Ndef : NodeProxy {
}

*clear { | fadeTime |
all.do(_.clear(fadeTime))
}

*hardClear { | fadeTime |
all.do(_.clear(fadeTime));
all.clear;
}
Expand Down

0 comments on commit f1500b6

Please sign in to comment.