File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/server/ruby/lib/sonicpi/lang Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -4072,7 +4072,7 @@ def use_real_time
4072
4072
opts : nil ,
4073
4073
modifies_env : true ,
4074
4074
accepts_block : false ,
4075
- examples : [ "use_real_time 1 # Code will now run approximately 1 second ahead of audio ." ]
4075
+ examples : [ "use_real_time # Code will now produce sound without a scheduling delay ." ]
4076
4076
4077
4077
4078
4078
def with_real_time ( &blk )
@@ -4101,8 +4101,12 @@ def with_real_time(&blk)
4101
4101
opts : nil ,
4102
4102
modifies_env : true ,
4103
4103
accepts_block : false ,
4104
- examples : [ "use_real_time 1 # Code will now run approximately 1 second ahead of audio." ]
4104
+ examples : [ "
4105
+ with_real_time do
4106
+ play 70 # Sound will happen without a scheduling delay.
4107
+ end
4105
4108
4109
+ play 70 # Sound will happen with the default latency (0.5s)." ]
4106
4110
4107
4111
def with_sched_ahead_time t , &blk
4108
4112
raise ArgumentError , "with_sched_ahead_time must be called with a do/end block. Perhaps you meant use_sched_ahead_time" unless blk
You can’t perform that action at this time.
0 commit comments