<s> from kivy . config import Config <EOL> Config . set ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> from audiostream import get_output <EOL> from audiostream . sources . wave import SineSource <EOL> CHANNELS = <NUM_LIT:2> <EOL> BUFSIZE = <NUM_LIT> <EOL> INCSIZE = <NUM_LIT> <EOL> from kivy . app import App <EOL> from kivy . uix . slider import Slider <EOL> class AudioApp ( App ) : <EOL> def build ( self ) : <EOL> self . stream = get_output ( channels = CHANNELS , buffersize = BUFSIZE , rate = <NUM_LIT> ) <EOL> self . slider = Slider ( min = <NUM_LIT> , max = <NUM_LIT> , value = <NUM_LIT> ) <EOL> self . slider . bind ( value = self . update_freq ) <EOL> self . source = SineSource ( self . stream , <NUM_LIT> ) <EOL> self . source . start ( ) <EOL> return self . slider <EOL> def update_freq ( self , slider , value ) : <EOL> if value != self . source . frequency : <EOL> self . source . frequency = value <EOL> AudioApp ( ) . run ( ) </s>
