Beispiel #1
0
# -*- coding: utf-8 -*-
from surge.materials.segment_ii.durations import stage_durations
from surge.tools.bezzie.BezierCurve import BezierCurve
from surge.tools.bezzie.Path import Path
from surge.tools.bezzie.RandomInterpolater import RandomInterpolater
from surge.tools.bezzie.SineInterpolater import SineInterpolater
import abjad

height = (
    Path(BezierCurve((0, 0.85), (stage_durations[0], 1))),
    Path(BezierCurve((0, 1), (stage_durations[1], 0.85))),
    Path(BezierCurve((0, 0.85), (stage_durations[2], 1))),
    None,
    Path(BezierCurve((0, 0.85), (stage_durations[4], 1))),
    Path(BezierCurve((0, 0.85), (stage_durations[5], 1))),
    None
)

sine_interpolater = SineInterpolater(freq=70, amp=2)
random_interpolater = RandomInterpolater(seed=hash('cello'))
height[0].set_interpolater(sine_interpolater)
height[1].set_interpolater(sine_interpolater)
height[2].set_interpolater(random_interpolater)
height[4].set_interpolater(random_interpolater)
height[5].set_interpolater(random_interpolater)
Beispiel #2
0
# -*- coding: utf-8 -*-
from surge.materials.segment_ii.durations import stage_durations
from surge.tools.bezzie.BezierCurve import BezierCurve
from surge.tools.bezzie.Path import Path
from surge.tools.bezzie.RandomInterpolater import RandomInterpolater
from surge.tools.bezzie.SineInterpolater import SineInterpolater
import abjad

sine_interpolater = SineInterpolater(freq=90, amp=2)
random_interpolater = RandomInterpolater(seed=hash('violin'))

height = (Path(BezierCurve((0, 0.85), (stage_durations[0], 1))),
          Path(BezierCurve((0, 1), (stage_durations[1], 0.85))),
          Path(BezierCurve((0, 0.85), (stage_durations[2], 1))), None,
          Path(BezierCurve((0, 0.85), (stage_durations[4], 1))),
          Path(BezierCurve((0, 0.85), (stage_durations[5], 1))), None)

height[0].set_interpolater(sine_interpolater)
height[1].set_interpolater(sine_interpolater)
height[2].set_interpolater(random_interpolater)
height[4].set_interpolater(random_interpolater)
height[5].set_interpolater(random_interpolater)
# -*- coding: utf-8 -*-
from surge.materials.segment_ii.durations import stage_durations
from surge.tools.bezzie.BezierCurve import BezierCurve
from surge.tools.bezzie.RandomInterpolater import RandomInterpolater
from surge.tools.bezzie.Path import Path
import abjad

random_interpolater = RandomInterpolater(seed=hash('1 ratiug'))

position = [
    None, None, None,
    Path(BezierCurve((0, 0.), (stage_durations[3], 0.5))),
    Path(BezierCurve((0, 0.25), (stage_durations[4], 0.75))),
    Path(BezierCurve((0, 0.5), (stage_durations[5], 1.))),
    Path(BezierCurve((0, 0.), (stage_durations[6], 0.5)))
]

position[3].set_interpolater(random_interpolater)
position[4].set_interpolater(random_interpolater)
position[5].set_interpolater(random_interpolater)
position[6].set_interpolater(random_interpolater)
Beispiel #4
0
# -*- coding: utf-8 -*-
from surge.materials.segment_ii.durations import stage_durations
from surge.tools.bezzie.BezierCurve import BezierCurve
from surge.tools.bezzie.RandomInterpolater import RandomInterpolater
from surge.tools.bezzie.Path import Path
import abjad

random_interpolater = RandomInterpolater(seed=hash('oboe'))

air_pressure = [
    None, None,
    Path(BezierCurve((0, 0), (stage_durations[2], 0.5))),
    Path(BezierCurve((0, 0.25), (stage_durations[3], 0.75))),
    Path(BezierCurve((0, 0.5), (stage_durations[4], 1))),
    Path(BezierCurve((0, 0.25), (stage_durations[5], 0.75))), None
]

air_pressure[2].set_interpolater(random_interpolater)
air_pressure[3].set_interpolater(random_interpolater)
air_pressure[4].set_interpolater(random_interpolater)
air_pressure[5].set_interpolater(random_interpolater)
Beispiel #5
0
# -*- coding: utf-8 -*-
from surge.materials.segment_ii.durations import stage_durations
from surge.tools.bezzie.BezierCurve import BezierCurve
from surge.tools.bezzie.RandomInterpolater import RandomInterpolater
from surge.tools.bezzie.Path import Path
import abjad

random_interpolater = RandomInterpolater(seed=hash('guitar 1'))

force = [
    None,
    None,
    None,
    Path(BezierCurve((0, 0), (stage_durations[3], 0.34))),
    Path(BezierCurve((0, 0.34), (stage_durations[4], 0.67))),
    Path(BezierCurve((0, 0.67), (stage_durations[5], 1))),
    Path(
        BezierCurve((0, 1), (stage_durations[6] / 3, 0.67)),
        BezierCurve((stage_durations[6] / 3, 0.67),
                    (stage_durations[6] * 2 / 3, 0.34)),
        BezierCurve((stage_durations[6] * 2 / 3, 0.34),
                    (stage_durations[6], 0))),
]

force[3].set_interpolater(random_interpolater)
force[4].set_interpolater(random_interpolater)
force[5].set_interpolater(random_interpolater)
force[6].set_interpolater(random_interpolater)
Beispiel #6
0
# -*- coding: utf-8 -*-
from surge.materials.segment_ii.durations import stage_durations
from surge.tools.bezzie.BezierCurve import BezierCurve
from surge.tools.bezzie.RandomInterpolater import RandomInterpolater
from surge.tools.bezzie.Path import Path
import abjad

random_interpolater = RandomInterpolater(seed=hash('saxophone'))

air_pressure = [
    None,
    None,
    Path(BezierCurve((0, 0), (stage_durations[2], 0.5))),
    Path(BezierCurve((0, 0.25), (stage_durations[3], 0.75))),
    Path(BezierCurve((0, 0.5), (stage_durations[4], 1))),
    Path(BezierCurve((0, 0.25), (stage_durations[5], 0.75))),
    None
]

air_pressure[2].set_interpolater(random_interpolater)
air_pressure[3].set_interpolater(random_interpolater)
air_pressure[4].set_interpolater(random_interpolater)
air_pressure[5].set_interpolater(random_interpolater)
Beispiel #7
0
# -*- coding: utf-8 -*-
from fractions import Fraction
from surge.materials.segment_ii.bass.durations import denominators, durations
from surge.materials.segment_ii.durations import stage_durations
from surge.materials.segment_ii.stages import number_of_stages
from surge.materials.segment_ii.utilities import make_glissandi
from surge.tools.bezzie.BezierCurve import BezierCurve
from surge.tools.bezzie.RandomInterpolater import RandomInterpolater
from surge.tools.bezzie.Path import Path
import abjad

random_interpolater = RandomInterpolater(seed=hash('bass'))

# stages 1 and 2

harmonics = [
    [
        Fraction(1, 11),
        Fraction(3, 5),
        Fraction(3, 4),
        Fraction(8, 13),
        Fraction(6, 13),
        Fraction(2, 7),
        Fraction(1, 2),
        Fraction(2, 3),
        Fraction(1, 3),
        Fraction(2, 5),
        Fraction(3, 5),
        Fraction(2, 5),
        Fraction(1, 7),
        Fraction(9, 17),
Beispiel #8
0
# -*- coding: utf-8 -*-
from surge.materials.segment_ii.durations import stage_durations
from surge.tools.bezzie.BezierCurve import BezierCurve
from surge.tools.bezzie.Path import Path
from surge.tools.bezzie.RandomInterpolater import RandomInterpolater
from surge.tools.bezzie.SineInterpolater import SineInterpolater

height = (Path(BezierCurve((0, 0.85), (stage_durations[0], 1))),
          Path(BezierCurve((0, 1), (stage_durations[1], 0.85))),
          Path(BezierCurve((0, 0.85), (stage_durations[2], 1))), None,
          Path(BezierCurve((0, 0.85), (stage_durations[4], 1))),
          Path(BezierCurve((0, 0.85), (stage_durations[5], 1))), None)

sine_interpolater = SineInterpolater(freq=60, amp=2)
random_interpolater = RandomInterpolater(seed=hash("bass"))
height[0].set_interpolater(sine_interpolater)
height[1].set_interpolater(sine_interpolater)
height[2].set_interpolater(random_interpolater)
height[4].set_interpolater(random_interpolater)
height[5].set_interpolater(random_interpolater)
Beispiel #9
0
# -*- coding: utf-8 -*-
from surge.materials.segment_ii.durations import stage_durations
from surge.tools.bezzie.BezierCurve import BezierCurve
from surge.tools.bezzie.RandomInterpolater import RandomInterpolater
from surge.tools.bezzie.Path import Path
import abjad

random_interpolater = RandomInterpolater(seed=hash('clarinet'))

air_pressure = [
    None, None,
    Path(BezierCurve((0, 0), (stage_durations[2], 0.5))),
    Path(BezierCurve((0, 0.25), (stage_durations[3], 0.75))),
    Path(BezierCurve((0, 0.5), (stage_durations[4], 1))),
    Path(BezierCurve((0, 0.25), (stage_durations[5], 0.75))), None
]

air_pressure[2].set_interpolater(random_interpolater)
air_pressure[3].set_interpolater(random_interpolater)
air_pressure[4].set_interpolater(random_interpolater)
air_pressure[5].set_interpolater(random_interpolater)
Beispiel #10
0
# -*- coding: utf-8 -*-
from surge.materials.segment_ii.durations import stage_durations
from surge.tools.bezzie.BezierCurve import BezierCurve
from surge.tools.bezzie.RandomInterpolater import RandomInterpolater
from surge.tools.bezzie.Path import Path
import abjad

random_interpolater = RandomInterpolater(seed=hash('enohpoxas'))

lip_pressure = [
    None, None,
    Path(BezierCurve((0, 0), (stage_durations[2], 1))),
    Path(BezierCurve((0, 0), (stage_durations[3], 1))),
    Path(BezierCurve((0, 0), (stage_durations[4], 1))),
    Path(BezierCurve((0, 0), (stage_durations[5], 1))), None
]

lip_pressure[2].set_interpolater(random_interpolater)
lip_pressure[3].set_interpolater(random_interpolater)
lip_pressure[4].set_interpolater(random_interpolater)
lip_pressure[5].set_interpolater(random_interpolater)
Beispiel #11
0
# -*- coding: utf-8 -*-
from surge.materials.segment_ii.durations import stage_durations
from surge.tools.bezzie.BezierCurve import BezierCurve
from surge.tools.bezzie.RandomInterpolater import RandomInterpolater
from surge.tools.bezzie.Path import Path
import abjad

random_interpolater = RandomInterpolater(seed=hash('eobo'))

lip_pressure = [
    None, None,
    Path(BezierCurve((0, 0), (stage_durations[2], 1))),
    Path(BezierCurve((0, 0), (stage_durations[3], 1))),
    Path(BezierCurve((0, 0), (stage_durations[4], 1))),
    Path(BezierCurve((0, 0), (stage_durations[5], 1))), None
]

lip_pressure[2].set_interpolater(random_interpolater)
lip_pressure[3].set_interpolater(random_interpolater)
lip_pressure[4].set_interpolater(random_interpolater)
lip_pressure[5].set_interpolater(random_interpolater)
# -*- coding: utf-8 -*-
from surge.materials.segment_ii.durations import stage_durations
from surge.tools.bezzie.BezierCurve import BezierCurve
from surge.tools.bezzie.RandomInterpolater import RandomInterpolater
from surge.tools.bezzie.Path import Path
import abjad

random_interpolater = RandomInterpolater(seed=hash('teniralc'))

lip_pressure = [
    None,
    None,
    Path(BezierCurve((0, 0), (stage_durations[2], 1))),
    Path(BezierCurve((0, 0), (stage_durations[3], 1))),
    Path(BezierCurve((0, 0), (stage_durations[4], 1))),
    Path(BezierCurve((0, 0), (stage_durations[5], 1))),
    None
]

lip_pressure[2].set_interpolater(random_interpolater)
lip_pressure[3].set_interpolater(random_interpolater)
lip_pressure[4].set_interpolater(random_interpolater)
lip_pressure[5].set_interpolater(random_interpolater)