def loadCurvesForSong(self):
    "\n        current curves will track song's curves.\n        \n        This fires 'add_curve' dispatcher events to announce the new curves.\n        "
    log.info('loadCurvesForSong')
    dispatcher.send('clear_curves')
    self.curveResources.clear()
    self.markers = Markers(uri=None, pointsStorage='file')
    self.currentSong = self.graph.value(self.session, L9['currentSong'])
    if (self.currentSong is None):
        return
    for uri in sorted(self.graph.objects(self.currentSong, L9['curve'])):
        try:
            cr = self.curveResources[uri] = CurveResource(self.graph, uri)
            cr.loadCurve()
            curvename = self.graph.label(uri)
            if (not curvename):
                raise ValueError(('curve %r has no label' % uri))
            dispatcher.send('add_curve', sender=self, uri=uri, label=curvename, curve=cr.curve)
        except Exception as e:
            log.error('loading %s failed: %s', uri, e)
    basename = os.path.join(showconfig.curvesDir(), showconfig.songFilenameFromURI(self.currentSong))
    try:
        self.markers.load(('%s.markers' % basename))
    except IOError:
        print('no marker file found')
current curves will track song's curves.

This fires 'add_curve' dispatcher events to announce the new curves.
def loadCurvesForSong(self):
    "\n        current curves will track song's curves.\n        \n        This fires 'add_curve' dispatcher events to announce the new curves.\n        "
    log.info('loadCurvesForSong')
    dispatcher.send('clear_curves')
    self.curveResources.clear()
    self.markers = Markers(uri=None, pointsStorage='file')
    self.currentSong = self.graph.value(self.session, L9['currentSong'])
    if (self.currentSong is None):
        return
    for uri in sorted(self.graph.objects(self.currentSong, L9['curve'])):
        try:
            cr = self.curveResources[uri] = CurveResource(self.graph, uri)
            cr.loadCurve()
            curvename = self.graph.label(uri)
            if (not curvename):
                raise ValueError(('curve %r has no label' % uri))
            dispatcher.send('add_curve', sender=self, uri=uri, label=curvename, curve=cr.curve)
        except Exception as e:
            log.error('loading %s failed: %s', uri, e)
    basename = os.path.join(showconfig.curvesDir(), showconfig.songFilenameFromURI(self.currentSong))
    try:
        self.markers.load(('%s.markers' % basename))
    except IOError:
        print('no marker file found')