This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AdditivePartial extends SinOsc { | |
int partialNumber; | |
float baseFreq; | |
float noteAmplitude; | |
fun void init( int partialNumber, float baseFreq, float noteAmplitude ) | |
{ | |
0 => this.gain; | |
0 => this.freq; | |
partialNumber => this.partialNumber; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"artist" : [ | |
{ | |
"name": "The Beatles", | |
"album" : [ | |
{ | |
"title": "Sgt. Pepper's Lonely Hearts Club Band", | |
"track": [ | |
{ | |
"title": "Within You Without You", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import re | |
from typing import Tuple | |
class FactorizationProblem: | |
"""Generates a factorization problem""" | |
def coinflip() -> bool: | |
return (random.randrange(2) == 0) |