This file contains hidden or 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
W = 800 | |
H = 800 | |
class Clock: | |
def __init__(self, hours, minutes, radius = 2 * W / 3, cx = W / 2, cy = H / 2): | |
self.hours = hours | |
self.minutes = minutes | |
self.radius = radius | |
self.cx = cx |
This file contains hidden or 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
# installing libraries | |
# sudo apt-get install -y python-pip | |
# sudo pip install wiringpi | |
import time | |
import wiringpi | |
wiringpi.wiringPiSetupGpio() | |
wiringpi.pinMode(18, wiringpi.GPIO.PWM_OUTPUT) | |
wiringpi.pwmSetMode(wiringpi.GPIO.PWM_MODE_MS) | |
wiringpi.pwmSetClock(192) |
This file contains hidden or 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
phases = [ | |
[ :G2, :G2, :G2, :G2, :G2, :G2, :F1, :F1, :F1, :G1, :G1, :F2].ring, | |
[ :G3, :G3, :G3, :G3, :G3, :G3, :F2, :F2, :F2, :G2, :G2, :F2].ring | |
] | |
takt = 0 | |
counter = 0 | |
phase = 0 | |
live_loop :main_loop do |
This file contains hidden or 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
ls =[:E, :D, :C, :D, :E, :F, :E, :D, :C, :D, :E, :F, :G,:D,:G,:D,:G,:F,:E,:D,:C,:C,:C,:C,:C ].ring | |
counter = 0 | |
live_loop :main_loop do | |
#use_synth :piano | |
use_bpm 100 | |
counter = (inc counter) |
This file contains hidden or 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
ls =[:E, :E, :D, :D, :A, :A, :F, :F, :G, :G, :B, :B, :C, :C, :A, :A ].ring | |
phases = [ | |
[1, 0, 0, 0], | |
[0.8, 1, 0, 0], | |
[0.8, 0.5, 1, 0], | |
[0.8, 0.5, 0.8, 1], | |
[0.8, 0.5, 1, 1.5], | |
[0.8, 0.7, 1, 1], | |
[0.8, 1, 0, 0.7], # to do zatuhanie in last | |
[1, 0, 0, 0.1], |
This file contains hidden or 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
ls = [50, 55, 62, 50, 55, 62, 50, 55, 62, 50, 55, 62].ring | |
counter = 0 | |
live_loop :amen_break do | |
use_bpm 80 | |
counter = (inc counter) | |
sample :loop_amen, beat_stretch: 2 | |
#play [:E3, :G3, :B3] | |
play ls[counter] | |
sleep 1 |
This file contains hidden or 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
Sonic Pi Boot Error Report | |
================== | |
System Information | |
---------------- | |
* Sonic Pi version: 2.10.0 | |
* OS: Assuming Linux |
This file contains hidden or 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
Sonic Pi server booting... | |
Using protocol: udp | |
Server is exiting. | |
Shutting down GUI... | |
Goodbye :-) |
This file contains hidden or 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
Non-critical error: Could not load did_you_mean | |
This application has requested the Runtime to terminate it in an unusual way. | |
Please contact the application's support team for more information. | |
terminate called after throwing an instance of 'std::system_error' | |
what(): Invalid argument | |
Failed to start server: Input/output error - TerminateProcess | |
D:/Distribs/SonicPi/SonicPiPortable/App/Sonic Pi/app/server/native/windows/ruby/lib/ruby/gems/2.1.0/gems/win32-process-0.8.3/lib/win32/process.rb:850:in `block in kill' | |
D:/Distribs/SonicPi/SonicPiPortable/App/Sonic Pi/app/server/native/windows/ruby/lib/ruby/gems/2.1.0/gems/win32-process-0.8.3/lib/win32/process.rb:797:in `each' | |
D:/Distribs/SonicPi/SonicPiPortable/App/Sonic Pi/app/server/native/windows/ruby/lib/ruby/gems/2.1.0/gems/win32-process-0.8.3/lib/win32/process.rb:797:in `kill' |
This file contains hidden or 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
void _send_video_init_gstreamer(NiceAgent *magent, guint stream_id, CustomData *data) | |
{ | |
GstElement *pipeline, *source, *capsfilter, *videoconvert, *h263p, *rtph263ppay, *sink; | |
GstBus *bus; | |
GstMessage *msg; | |
GstStateChangeReturn ret; | |
GSource *bus_source; | |
source = gst_element_factory_make ("wrappercamerabinsrc", "source"); | |
capsfilter = gst_element_factory_make ("capsfilter", "capsfilter"); |
NewerOlder