How to use _track method in tappy

Best Python code snippet using tappy_python

SpecialChanStripComponent.py

Source:SpecialChanStripComponent.py Github

copy

Full Screen

...20 self._on_track_name_changed()21 self._on_track_color_changed()22 self._update_track_index()23 self._serato_interface = None24 def set_track(self, track):25 self._remove_send_listeners()26 self._remove_level_listener()27 if self._track != None:28 self._track.remove_color_listener(self._on_track_color_changed)29 self._track.mixer_device.volume.remove_value_listener(self._on_volume_changed)30 self._track.remove_has_midi_output_listener(self._on_output_type_changed)31 ChannelStripComponent.set_track(self, track)32 if self._track != None:33 self._track.add_color_listener(self._on_track_color_changed)34 self._track.mixer_device.volume.add_value_listener(self._on_volume_changed)35 self._track.add_has_midi_output_listener(self._on_output_type_changed)36 self._add_send_listeners()37 self._on_volume_changed()38 self._on_output_type_changed()39 self._update_track_index()40 def set_index(self, index):41 raise index > -1 or AssertionError42 self._index = index43 self.update()44 self._on_send_a_changed()45 self._on_send_b_changed()...

Full Screen

Full Screen

ChannelStripComponent.py

Source:ChannelStripComponent.py Github

copy

Full Screen

...59 else:60 return self._arm_off_value61 else:62 return self.empty_color63 def set_track(self, track):64 super(ChannelStripComponent, self).set_track(track)65 if self._track != None:66 self._on_volume_changed.subject = self._track.mixer_device.volume67 self._on_pan_changed.subject = self._track.mixer_device.panning68 sends = self._track.mixer_device.sends69 if len(sends) > 0:70 self._on_send_a_changed.subject = self._track.mixer_device.sends[0]71 if len(sends) > 1:72 self._on_send_b_changed.subject = self._track.mixer_device.sends[1]73 self._update_volume_button_led()74 self._update_pan_button_led()75 self._update_send_a_button_led()76 self._update_send_b_button_led()77 @subject_slot(u'value')78 def _on_volume_changed(self):...

Full Screen

Full Screen

track_factory.py

Source:track_factory.py Github

copy

Full Screen

1import logging, sys, math, numpy as np2import matplotlib.pyplot as plt3from. import track, path, path_factory, utils4def make_circle_track(c, r1, r2, th0, dth, n_pt=10):5 r = (r1+r2)/26 _track = track.Track()7 ths = np.linspace(th0, th0+np.sign(r)*dth, n_pt, endpoint=False)8 _track.left_border = utils.pt_on_circle(c, np.abs(r1), ths)9 _track.right_border = utils.pt_on_circle(c, np.abs(r2), ths)10 _track.path = path_factory.make_circle_path(c, r, th0, dth, n_pt)11 return _track12def make_oval_track(c1, c2, r, w):13 _track = track.Track()14 _track.path = path_factory.make_oval_path(c1, c2, r)15 _track.left_border = np.array(_track.path.points)16 _track.right_border = np.array(_track.path.points)17 for i in range(len(_track.path.points)):18 v = np.array([np.cos(_track.path.headings[i]+np.pi/2), np.sin(_track.path.headings[i]+np.pi/2)])19 _track.left_border[i] += v*w/220 _track.right_border[i] -= v*w/221 return _track22def make_fig_of_height_track(r, w):23 _track = track.Track()24 _track.path = path_factory.make_fig_of_height_path2(r)25 _track.left_border = np.array(_track.path.points)26 _track.right_border = np.array(_track.path.points)27 for i in range(len(_track.path.points)):28 v = np.array([np.cos(_track.path.headings[i]+np.pi/2), np.sin(_track.path.headings[i]+np.pi/2)])29 _track.left_border[i] += v*w/230 _track.right_border[i] -= v*w/231 return _track32def view(_track):33 fig, ax = plt.gcf(), plt.subplot(1,1,1)34 path_factory.draw_path(fig, ax, _track.path)35 plt.plot(_track.left_border[:,0], _track.left_border[:,1], 'r', linewidth=0.5)36 plt.plot(_track.right_border[:,0], _track.right_border[:,1], 'g', linewidth=0.5)...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run tappy automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful