git.go-v.org

JuJenkinson/code2

#imports Pyata library from Pd import * #mains method if __name__ == '__main__': #creates an instance of Pd pd = Pd() #initializes Pyata pd.init() #creates an object dac~ in 10, 10 on the patch dac = Object(10, 10, "dac~") #moves the dac to 300, 300 dac.move(200, 200) #creates an object osc~ in 200, 100 on the patch osc = Object(200, 150, "osc~") #connects the outlet 0 from osc to the inlet 0 from dac connect(osc, 0, dac, 0) #edits the osc object from "osc~" to "osc~ 220" osc.edit("osc~ 220") sleep(2) #creates an number in 200, 10 on the patch n1 = Number(osc.x, osc.y-50) #connects the outlet 0 from osc to the inlet 0 from dac connect(n1, 0, osc, 0) #sets the value from the number to 440 n1.set(440) sleep(2) #increments n1 120 times for i in range(0, 220): n1.increment() sleep(2) #prints n1 value print n1.get_value() #prints all objects available in memory print pd.get_box_list() #prints all connections availa

source: Software Heritage origin index (GitHub origins)licence: Per source; see source termsdatabase: /home/dbs/git.dbmode: tablerecords: 54109979 (max_rowid)citation: —

#imports Pyata library from Pd import * #mains method if __name__ == '__main__': #creates an instance of Pd pd = Pd() #initializes Pyata pd.init() #creates an object dac~ in 10, 10 on the patch dac = Object(10, 10, "dac~") #moves the dac to 300, 300 dac.move(200, 200) #creates an object osc~ in 200, 100 on the patch osc = Object(200, 150, "osc~") #connects the outlet 0 from osc to the inlet 0 from dac connect(osc, 0, dac, 0) #edits the osc object from "osc~" to "osc~ 220" osc.edit("osc~ 220") sleep(2) #creates an number in 200, 10 on the patch n1 = Number(osc.x, osc.y-50) #connects the outlet 0 from osc to the inlet 0 from dac connect(n1, 0, osc, 0) #sets the value from the number to 440 n1.set(440) sleep(2) #increments n1 120 times for i in range(0, 220): n1.increment() sleep(2) #prints n1 value print n1.get_value() #prints all objects available in memory print pd.get_box_list() #prints all connections available in memory print pd.get_connection_list() sleep(2) #finishes Pyata pd.quit()

Read full text or abstract (1,250 characters)

Cite this record

MLA
"JuJenkinson/code2." Software Heritage origin index (GitHub origins), n.d., https://git.go-v.org/record/JuJenkinson%2Fcode2.

Chicago
"JuJenkinson/code2." Software Heritage origin index (GitHub origins). n.d.. https://git.go-v.org/record/JuJenkinson%2Fcode2.

APA
Software Heritage origin index (GitHub origins). (n.d.). JuJenkinson/code2. https://git.go-v.org/record/JuJenkinson%2Fcode2

Share card · JSON record · Embed

Save to pass ·

source: Software Heritage origin index (GitHub origins)licence: Per source; see source termsyear: —id: JuJenkinson/code2citation: https://git.go-v.org/record/JuJenkinson%2Fcode2

JSON · JSON download · CSV · full text · full-text JSON ·

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.