/usr/lib/python3/dist-packages/pyolib/pan.py is in python3-pyo 0.8.8-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 | from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
"""
Set of objects to manage audio voice routing and spread of a sound
signal into a new stereo or multi-channel sound field.
"""
"""
Copyright 2009-2015 Olivier Belanger
This file is part of pyo, a python module to help digital signal
processing script creation.
pyo is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
pyo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with pyo. If not, see <http://www.gnu.org/licenses/>.
"""
import sys
from ._core import *
from ._maps import *
class Pan(PyoObject):
"""
Cosinus panner with control on the spread factor.
:Parent: :py:class:`PyoObject`
:Args:
input: PyoObject
Input signal to process.
outs: int, optional
Number of channels on the panning circle. Available at
initialization time only. Defaults to 2.
pan: float or PyoObject
Position of the sound on the panning circle, between 0 and 1.
Defaults to 0.5.
spread: float or PyoObject
Amount of sound leaking to the surrounding channels,
between 0 and 1. Defaults to 0.5.
>>> s = Server(nchnls=2).boot()
>>> s.start()
>>> a = Noise(mul=.2)
>>> lfo = Sine(freq=1, mul=.5, add=.5)
>>> p = Pan(a, outs=2, pan=lfo).out()
"""
def __init__(self, input, outs=2, pan=0.5, spread=0.5, mul=1, add=0):
pyoArgsAssert(self, "oIOOOO", input, outs, pan, spread, mul, add)
PyoObject.__init__(self, mul, add)
self._input = input
self._pan = pan
self._outs = outs
self._spread = spread
self._in_fader = InputFader(input)
in_fader, pan, spread, mul, add, lmax = convertArgsToLists(self._in_fader, pan, spread, mul, add)
self._base_players = [Panner_base(wrap(in_fader,i), outs, wrap(pan,i), wrap(spread,i)) for i in range(lmax)]
self._base_objs = []
for i in range(lmax):
for j in range(outs):
self._base_objs.append(Pan_base(wrap(self._base_players,i), j, wrap(mul,i), wrap(add,i)))
self.play()
def setInput(self, x, fadetime=0.05):
"""
Replace the `input` attribute.
:Args:
x: PyoObject
New signal to process.
fadetime: float, optional
Crossfade time between old and new input. Default to 0.05.
"""
pyoArgsAssert(self, "oN", x, fadetime)
self._input = x
self._in_fader.setInput(x, fadetime)
def setPan(self, x):
"""
Replace the `pan` attribute.
:Args:
x: float or PyoObject
new `pan` attribute.
"""
pyoArgsAssert(self, "O", x)
self._pan = x
x, lmax = convertArgsToLists(x)
[obj.setPan(wrap(x,i)) for i, obj in enumerate(self._base_players)]
def setSpread(self, x):
"""
Replace the `spread` attribute.
:Args:
x: float or PyoObject
new `spread` attribute.
"""
pyoArgsAssert(self, "O", x)
self._spread = x
x, lmax = convertArgsToLists(x)
[obj.setSpread(wrap(x,i)) for i, obj in enumerate(self._base_players)]
def ctrl(self, map_list=None, title=None, wxnoserver=False):
self._map_list = [SLMapPan(self._pan),
SLMap(0., 1., 'lin', 'spread', self._spread),
SLMapMul(self._mul)]
PyoObject.ctrl(self, map_list, title, wxnoserver)
@property
def input(self):
"""PyoObject. Input signal to process."""
return self._input
@input.setter
def input(self, x): self.setInput(x)
@property
def pan(self):
"""float or PyoObject. Position of the sound on the panning circle."""
return self._pan
@pan.setter
def pan(self, x): self.setPan(x)
@property
def spread(self):
"""float or PyoObject. Amount of sound leaking to the surrounding channels."""
return self._spread
@spread.setter
def spread(self, x): self.setSpread(x)
class SPan(PyoObject):
"""
Simple equal power panner.
:Parent: :py:class:`PyoObject`
:Args:
input: PyoObject
Input signal to process.
outs: int, optional
Number of channels on the panning circle. Available at
initialization time only. Defaults to 2.
pan: float or PyoObject
Position of the sound on the panning circle, between 0 and 1.
Defaults to 0.5.
>>> s = Server(nchnls=2).boot()
>>> s.start()
>>> a = Noise(mul=.2)
>>> lfo = Sine(freq=1, mul=.5, add=.5)
>>> p = SPan(a, outs=2, pan=lfo).out()
"""
def __init__(self, input, outs=2, pan=0.5, mul=1, add=0):
pyoArgsAssert(self, "oIOOO", input, outs, pan, mul, add)
PyoObject.__init__(self, mul, add)
self._input = input
self._outs = outs
self._pan = pan
self._in_fader = InputFader(input)
in_fader, pan, mul, add, lmax = convertArgsToLists(self._in_fader, pan, mul, add)
self._base_players = [SPanner_base(wrap(in_fader,i), outs, wrap(pan,i)) for i in range(lmax)]
self._base_objs = []
for i in range(lmax):
for j in range(outs):
self._base_objs.append(SPan_base(wrap(self._base_players,i), j, wrap(mul,i), wrap(add,i)))
self.play()
def setInput(self, x, fadetime=0.05):
"""
Replace the `input` attribute.
:Args:
x: PyoObject
New signal to process.
fadetime: float, optional
Crossfade time between old and new input. Default to 0.05.
"""
pyoArgsAssert(self, "oN", x, fadetime)
self._input = x
self._in_fader.setInput(x, fadetime)
def setPan(self, x):
"""
Replace the `pan` attribute.
:Args:
x: float or PyoObject
new `pan` attribute.
"""
pyoArgsAssert(self, "O", x)
self._pan = x
x, lmax = convertArgsToLists(x)
[obj.setPan(wrap(x,i)) for i, obj in enumerate(self._base_players)]
def ctrl(self, map_list=None, title=None, wxnoserver=False):
self._map_list = [SLMapPan(self._pan), SLMapMul(self._mul)]
PyoObject.ctrl(self, map_list, title, wxnoserver)
@property
def input(self):
"""PyoObject. Input signal to process."""
return self._input
@input.setter
def input(self, x): self.setInput(x)
@property
def pan(self):
"""float or PyoObject. Position of the sound on the panning circle."""
return self._pan
@pan.setter
def pan(self, x): self.setPan(x)
class Switch(PyoObject):
"""
Audio switcher.
Switch takes an audio input and interpolates between multiple outputs.
User can retrieve the different streams by calling the output number
between brackets. obj[0] retrieve the first stream, obj[outs-1] the
last one.
:Parent: :py:class:`PyoObject`
:Args:
input: PyoObject
Input signal to process.
outs: int, optional
Number of outputs. Available at initialization time only.
Defaults to 2.
voice: float or PyoObject
Voice position pointer, between 0 and (outs-1) / len(input).
Defaults to 0.
>>> s = Server(nchnls=2).boot()
>>> s.start()
>>> a = SfPlayer(SNDS_PATH + "/transparent.aif", speed=[.999,1], loop=True, mul=.3)
>>> lf = Sine(freq=.25, mul=1, add=1)
>>> b = Switch(a, outs=6, voice=lf)
>>> c = WGVerb(b[0:2], feedback=.8).out()
>>> d = Disto(b[2:4], drive=.9, mul=.1).out()
>>> e = Delay(b[4:6], delay=.2, feedback=.6).out()
"""
def __init__(self, input, outs=2, voice=0., mul=1, add=0):
pyoArgsAssert(self, "oIOOO", input, outs, voice, mul, add)
PyoObject.__init__(self, mul, add)
self._input = input
self._outs = outs
self._voice = voice
self._in_fader = InputFader(input)
in_fader, voice, mul, add, lmax = convertArgsToLists(self._in_fader, voice, mul, add)
self._base_players = [Switcher_base(wrap(in_fader,i), outs, wrap(voice,i)) for i in range(lmax)]
self._base_objs = []
for j in range(outs):
for i in range(lmax):
self._base_objs.append(Switch_base(wrap(self._base_players,i), j, wrap(mul,i), wrap(add,i)))
self.play()
def setInput(self, x, fadetime=0.05):
"""
Replace the `input` attribute.
:Args:
x: PyoObject
New signal to process.
fadetime: float, optional
Crossfade time between old and new input. Default to 0.05.
"""
pyoArgsAssert(self, "oN", x, fadetime)
self._input = x
self._in_fader.setInput(x, fadetime)
def setVoice(self, x):
"""
Replace the `voice` attribute.
:Args:
x: float or PyoObject
new `voice` attribute.
"""
pyoArgsAssert(self, "O", x)
self._voice = x
x, lmax = convertArgsToLists(x)
[obj.setVoice(wrap(x,i)) for i, obj in enumerate(self._base_players)]
def ctrl(self, map_list=None, title=None, wxnoserver=False):
self._map_list = [SLMap(0, self._outs-1, "lin", "voice", self._voice), SLMapMul(self._mul)]
PyoObject.ctrl(self, map_list, title, wxnoserver)
@property
def input(self):
"""PyoObject. Input signal to process."""
return self._input
@input.setter
def input(self, x): self.setInput(x)
@property
def voice(self):
"""float or PyoObject. Voice position pointer."""
return self._voice
@voice.setter
def voice(self, x): self.setVoice(x)
class Selector(PyoObject):
"""
Audio selector.
Selector takes multiple PyoObjects in input and interpolates between
them to generate a single output.
:Parent: :py:class:`PyoObject`
:Args:
inputs: list of PyoObject
Audio objects to interpolate from.
voice: float or PyoObject, optional
Voice position pointer, between 0 and len(inputs)-1.
Defaults to 0.
>>> s = Server().boot()
>>> s.start()
>>> a = SfPlayer(SNDS_PATH + "/transparent.aif", speed=[.999,1], loop=True, mul=.3)
>>> b = Noise(mul=.1)
>>> c = SfPlayer(SNDS_PATH + "/accord.aif", speed=[.999,1], loop=True, mul=.5)
>>> lf = Sine(freq=.1, add=1)
>>> d = Selector(inputs=[a,b,c], voice=lf).out()
"""
def __init__(self, inputs, voice=0., mul=1, add=0):
pyoArgsAssert(self, "lOOO", inputs, voice, mul, add)
PyoObject.__init__(self, mul, add)
self._inputs = inputs
self._voice = voice
self._mode = 0
voice, mul, add, self._lmax = convertArgsToLists(voice, mul, add)
self._length = 1
for obj in self._inputs:
try:
if len(obj) > self._length: self._length = len(obj)
except:
pass
self._base_objs = []
for i in range(self._lmax):
for j in range(self._length):
choice = []
for obj in self._inputs:
try:
choice.append(obj[j%len(obj)])
except:
choice.append(obj)
self._base_objs.append(Selector_base(choice, wrap(voice,i), wrap(mul,i), wrap(add,i)))
self.play()
def setInputs(self, x):
"""
Replace the `inputs` attribute.
:Args:
x: list of PyoObject
new `inputs` attribute.
"""
pyoArgsAssert(self, "l", x)
self._inputs = x
for i in range(self._lmax):
for j in range(self._length):
choice = []
for obj in self._inputs:
try:
choice.append(obj[j%len(obj)])
except:
choice.append(obj)
self._base_objs[i+j*self._lmax].setInputs(choice)
def setVoice(self, x):
"""
Replace the `voice` attribute.
:Args:
x: float or PyoObject
new `voice` attribute.
"""
pyoArgsAssert(self, "O", x)
self._voice = x
x, lmax = convertArgsToLists(x)
for i, obj in enumerate(self._base_objs):
obj.setVoice(wrap(x, i // self._length))
def setMode(self, x):
"""
Change the algorithm used to interpolate between inputs.
if inputs are phase correlated you should use a linear fade.
:Args:
x: int {0, 1}
If 0 (the default) the equal power law is used to
interpolate bewtween sources. If 1, linear fade is
used instead.
"""
pyoArgsAssert(self, "i", x)
self._mode = x
[obj.setMode(x) for obj in self._base_objs]
def ctrl(self, map_list=None, title=None, wxnoserver=False):
self._map_list = [SLMap(0, len(self._inputs)-1, "lin", "voice", self._voice), SLMapMul(self._mul)]
PyoObject.ctrl(self, map_list, title, wxnoserver)
@property
def inputs(self):
"""List of PyoObjects. Audio objects to interpolate from."""
return self._inputs
@inputs.setter
def inputs(self, x):
self.setInputs(x)
@property
def voice(self):
"""float or PyoObject. Voice position pointer."""
return self._voice
@voice.setter
def voice(self, x):
self.setVoice(x)
class VoiceManager(PyoObject):
"""
Polyphony voice manager.
A trigger in input ask the object for a voice number and the object returns
the first free one. The voice number is then disable until a trig comes at
the same position in the list of triggers given at the argument `triggers`.
Usually, the trigger enabling the voice number will come from the process
started with the object output. So, it's common to leave the `triggers`
argument to None and set the list of triggers afterward with the `setTriggers`
method. The maximum number of voices generated by the object is the length
of the trigger list.
If there is no free voice, the object outputs -1.0 continuously.
:Parent: :py:class:`PyoObject`
:Args:
input: PyoObject
Trigger stream asking for new voice numbers.
triggers: PyoObject or list of PyoObject, optional
List of mono PyoObject sending triggers. Can be a multi-streams
PyoObject but not a mix of both.
Ordering in the list corresponds to voice numbers. Defaults to None.
>>> s = Server().boot()
>>> s.start()
>>> env = CosTable([(0,0),(100,1),(500,.5),(8192,0)])
>>> delta = RandDur(min=.05, max=.1)
>>> vm = VoiceManager(Change(delta))
>>> sel = Select(vm, value=[0,1,2,3])
>>> pit = TrigChoice(sel, choice=[midiToHz(x) for x in [60,63,67,70,72]])
>>> amp = TrigEnv(sel, table=env, dur=.5, mul=.25)
>>> synth1 = SineLoop(pit, feedback=.07, mul=amp).out()
>>> vm.setTriggers(amp["trig"])
"""
def __init__(self, input, triggers=None, mul=1, add=0):
#pyoArgsAssert(self, "ooOO", input, triggers, mul, add)
PyoObject.__init__(self, mul, add)
self._input = input
self._triggers = triggers
self._in_fader = InputFader(input)
in_fader, mul, add, lmax = convertArgsToLists(self._in_fader, mul, add)
if triggers is not None:
if type(triggers) == list:
try:
t_streams = [obj[0] for obj in triggers]
except TypeError:
t_streams = triggers
elif isinstance(triggers, PyoObject):
t_streams = triggers.getBaseObjects()
else:
t_streams = None
else:
t_streams = None
self._base_objs = [VoiceManager_base(wrap(in_fader,i), t_streams, wrap(mul,i), wrap(add,i)) for i in range(lmax)]
self.play()
def setInput(self, x, fadetime=0.05):
"""
Replace the `input` attribute.
:Args:
x: PyoObject
New signal to process.
fadetime: float, optional
Crossfade time between old and new input. Defaults to 0.05.
"""
pyoArgsAssert(self, "oN", x, fadetime)
self._input = x
self._in_fader.setInput(x, fadetime)
def setTriggers(self, x):
"""
Replace the `triggers` attribute.
:Args:
x: PyoObject or list of PyoObject
New `triggers` attribute.
"""
#pyoArgsAssert(self, "o", x)
self._triggers = x
if x is not None:
if type(x) == list:
try:
t_streams = [obj[0] for obj in x]
except TypeError:
t_streams = x
elif isinstance(x, PyoObject):
t_streams = x.getBaseObjects()
else:
t_streams = None
[obj.setTriggers(t_streams) for i, obj in enumerate(self._base_objs)]
@property
def input(self):
"""PyoObject. Trigger stream asking for new voice numbers."""
return self._input
@input.setter
def input(self, x):
self.setInput(x)
@property
def triggers(self):
"""list of PyoObject. Trigger streams enabling voices."""
return self._triggers
@triggers.setter
def triggers(self, x):
self.setTriggers(x)
class Mixer(PyoObject):
"""
Audio mixer.
Mixer mixes multiple inputs to an arbitrary number of outputs
with independant amplitude values per mixing channel and a
user defined portamento applied on amplitude changes.
:Parent: :py:class:`PyoObject`
:Args:
outs: int, optional
Number of outputs of the mixer. Available at initialization
time only. Defaults to 2.
chnls: int, optional
Number of channels per output. Available at initialization
time only. Defaults to 1.
time: float, optional
Duration, in seconds, of a portamento applied on
a new amplitude value for a mixing channel.
Defaults to 0.025.
.. note::
User can retrieve each of the output channels by calling the Mixer
object with the desired channel between square brackets (see example).
>>> s = Server().boot()
>>> s.start()
>>> a = SfPlayer(SNDS_PATH+"/transparent.aif", loop=True, mul=.2)
>>> b = FM(carrier=200, ratio=[.5013,.4998], index=6, mul=.2)
>>> mm = Mixer(outs=3, chnls=2, time=.025)
>>> fx1 = Disto(mm[0], drive=.9, slope=.9, mul=.1).out()
>>> fx2 = Freeverb(mm[1], size=.8, damp=.8, mul=.5).out()
>>> fx3 = Harmonizer(mm[2], transpo=1, feedback=.75, mul=.5).out()
>>> mm.addInput(0, a)
>>> mm.addInput(1, b)
>>> mm.setAmp(0,0,.5)
>>> mm.setAmp(0,1,.5)
>>> mm.setAmp(1,2,.5)
>>> mm.setAmp(1,1,.5)
"""
def __init__(self, outs=2, chnls=1, time=0.025, mul=1, add=0):
pyoArgsAssert(self, "IInOO", outs, chnls, time, mul, add)
PyoObject.__init__(self, mul, add)
self._outs = outs
self._chnls = chnls
self._time = time
self._inputs = {}
time, mul, add, lmax = convertArgsToLists(time, mul, add)
self._base_players = [Mixer_base(outs, wrap(time,i)) for i in range(chnls)]
self._base_objs = [MixerVoice_base(self._base_players[j], i, wrap(mul,i), wrap(add,i)) for i in range(outs) for j in range(chnls)]
self.play()
def __getitem__(self, x):
if type(x) == slice:
return [self._base_objs[j*self._chnls+i] for j in range(x.start or 0, x.stop or sys.maxsize, x.step or 1) for i in range(self._chnls)]
elif x < len(self._base_objs):
return [self._base_objs[x*self._chnls+i] for i in range(self._chnls)]
else:
print("'x' too large!")
def setTime(self, x):
"""
Sets the portamento duration in seconds.
:Args:
x: float
New portamento duration.
"""
pyoArgsAssert(self, "n", x)
self._time = x
x, lmax = convertArgsToLists(x)
[obj.setTime(wrap(x,i)) for i, obj in enumerate(self._base_players)]
def addInput(self, voice, input):
"""
Adds an audio object in the mixer's inputs.
This method returns the key (voice argument or generated key if voice=None).
:Args:
voice: int or string
Key in the mixer dictionary for this input. If None, a unique key
between 0 and 32767 will be automatically generated.
input: PyoObject
Audio object to add to the mixer.
"""
pyoArgsAssert(self, "o", input)
if voice is None:
voice = get_random_integer(mx=32767)
while voice in self._inputs:
voice = get_random_integer(mx=32767)
if voice in self._inputs:
print("Mixer has already a key named %s" % voice, file=sys.stderr)
return
self._inputs[voice] = input
input, lmax = convertArgsToLists(input)
[obj.addInput(str(voice), wrap(input,i)) for i, obj in enumerate(self._base_players)]
return voice
def delInput(self, voice):
"""
Removes an audio object from the mixer's inputs.
:Args:
voice: int or string
Key in the mixer dictionary assigned to the input to remove.
"""
if voice in self._inputs:
del self._inputs[voice]
[obj.delInput(str(voice)) for i, obj in enumerate(self._base_players)]
def setAmp(self, vin, vout, amp):
"""
Sets the amplitude of a mixing channel.
:Args:
vin: int or string
Key in the mixer dictionary of the desired input.
vout: int
Ouput channel where to send the signal.
amp: float
Amplitude value for this mixing channel.
"""
if vin in self._inputs and vout < self._outs:
[obj.setAmp(str(vin), vout, amp) for i, obj in enumerate(self._base_players)]
def getChannels(self):
"""
Returns the Mixer's channels dictionary.
"""
return self._inputs
def getKeys(self):
"""
Returns the list of current keys in the Mixer's channels dictionary.
"""
return list(self._inputs.keys())
def ctrl(self, map_list=None, title=None, wxnoserver=False):
self._map_list = [SLMap(0, 10, 'lin', 'time', self._time, dataOnly=True),
SLMapMul(self._mul)]
PyoObject.ctrl(self, map_list, title, wxnoserver)
@property
def time(self):
"""float. Portamento."""
return self._time
@time.setter
def time(self, x): self.setTime(x)
|