Permalink
Browse files

Rename application to Gum.

  • Loading branch information...
1 parent 001adcd commit 0cc844178c35e72028977278942b12c0246e4dc9 @stackp committed Mar 25, 2012
Showing with 84 additions and 84 deletions.
  1. +1 −1 MANIFEST.in
  2. +1 −1 README
  3. +2 −2 scalpel.desktop → gum.desktop
  4. 0 {scalpel → gum}/__init__.py
  5. +4 −4 {scalpel → gum}/app.py
  6. +3 −0 gum/constants.py
  7. 0 {scalpel → gum}/controllers/__init__.py
  8. +12 −12 {scalpel → gum}/controllers/control.py
  9. 0 {scalpel → gum}/controllers/effect.py
  10. +4 −4 {scalpel → gum}/controllers/player.py
  11. 0 {scalpel → gum}/fast/Makefile
  12. 0 {scalpel → gum}/fast/fast.h
  13. 0 {scalpel → gum}/fast/fast.pyx
  14. 0 {scalpel → gum}/fx/Makefile
  15. 0 {scalpel → gum}/fx/__init__.py
  16. 0 {scalpel → gum}/fx/_svf.pyx
  17. +2 −2 {scalpel → gum}/fx/bitcrusher.py
  18. +2 −2 {scalpel → gum}/fx/convolution.py
  19. +2 −2 {scalpel → gum}/fx/monoize.py
  20. +2 −2 {scalpel → gum}/fx/svf.py
  21. +2 −2 {scalpel → gum}/fx/volume.py
  22. 0 {scalpel → gum}/lib/__init__.py
  23. 0 {scalpel → gum}/lib/event.py
  24. 0 {scalpel → gum}/lib/mock.py
  25. 0 {scalpel → gum}/lib/pysndfile.py
  26. 0 {scalpel → gum}/models/__init__.py
  27. 0 {scalpel → gum}/models/clipboard.py
  28. +3 −3 {scalpel → gum}/models/cursor.py
  29. +4 −4 {scalpel → gum}/models/edit.py
  30. +9 −9 {scalpel → gum}/models/graphmodel.py
  31. +3 −3 {scalpel → gum}/models/selection.py
  32. +3 −3 {scalpel → gum}/run.py
  33. 0 {scalpel → gum}/test-leak.py
  34. 0 {scalpel → gum}/views/__init__.py
  35. 0 {scalpel → gum}/views/gtkeffect.py
  36. 0 {scalpel → gum}/views/gtkfiledialog.py
  37. +9 −9 {scalpel → gum}/views/gtkui.py
  38. +3 −3 {scalpel → gum}/views/gtkwaveform.py
  39. +1 −1 run
  40. +0 −3 scalpel/constants.py
  41. +1 −1 scripts/{scalpel → gum}
  42. +10 −10 setup.py
  43. +1 −1 test
View
@@ -1 +1 @@
-include scalpel/fast/fast.h
+include gum/fast/fast.h
View
2 README
@@ -1,3 +1,3 @@
Please see this page for detailed installation instructions:
- http://scalpelsound.online.fr/?page_id=457
+ https://github.com/stackp/Gum
@@ -1,8 +1,8 @@
[Desktop Entry]
-Name=Scalpel
+Name=Gum
GenericName=Audio Editor
Comment=An audio editor
-Exec=scalpel %f
+Exec=gum %f
Terminal=false
Type=Application
Icon=editcut
File renamed without changes.
@@ -1,10 +1,10 @@
-# Scalpel sound editor (http://scalpelsound.online.fr)
+# Gum sound editor (https://github.com/stackp/Gum)
# Copyright 2009 (C) Pierre Duquesne <stackp@online.fr>
# Licensed under the Revised BSD License.
-from scalpel.lib import event
-from scalpel.models import graphmodel, cursor, edit, selection
-from scalpel.controllers import control, player, effect
+from gum.lib import event
+from gum.models import graphmodel, cursor, edit, selection
+from gum.controllers import control, player, effect
import os.path
import glob
import imp
View
@@ -0,0 +1,3 @@
+__appname__ = "Gum"
+__version__ = '0.8.2'
+__url__ = 'https://github.com/stackp/Gum'
File renamed without changes.
@@ -1,13 +1,13 @@
-# Scalpel sound editor (http://scalpelsound.online.fr)
+# Gum sound editor (https://github.com/stackp/Gum)
# Copyright 2009 (C) Pierre Duquesne <stackp@online.fr>
# Licensed under the Revised BSD License.
-from scalpel.models import edit
-from scalpel.models import clipboard
-from scalpel.controllers.player import Player
-from scalpel.lib.event import Signal
-from scalpel.controllers import effect
-import scalpel.app
+from gum.models import edit
+from gum.models import clipboard
+from gum.controllers.player import Player
+from gum.lib.event import Signal
+from gum.controllers import effect
+import gum.app
import traceback
class Controller(object):
@@ -21,7 +21,7 @@ def __init__(self, sound, player, graph, selection):
self.error = Signal()
def new(self):
- scalpel.app.open_()
+ gum.app.open_()
def _report_exception(method):
"""Method decorator.
@@ -48,7 +48,7 @@ def open(self, filename):
if self._sound.is_fresh():
self.load_sound(filename)
else:
- scalpel.app.open_(filename)
+ gum.app.open_(filename)
@_report_exception
def load_sound(self, filename):
@@ -204,16 +204,16 @@ def __getattr__(self, name):
class FileNotSaved(Exception): pass
def test_Controller():
- from scalpel.lib.mock import Fake
+ from gum.lib.mock import Fake
# Test opening a file
ctrl = Controller(Fake(), Fake(), Fake(), Fake())
ctrl.open('../../sounds/test1.wav')
assert ctrl._sound != None
def test_fix_selection():
- from scalpel.lib.mock import Fake, Mock
- from scalpel.models.selection import Selection
+ from gum.lib.mock import Fake, Mock
+ from gum.models.selection import Selection
import numpy
# Undo
File renamed without changes.
@@ -1,10 +1,10 @@
-# Scalpel sound editor (http://scalpelsound.online.fr)
+# Gum sound editor (https://github.com/stackp/Gum)
# Copyright 2009 (C) Pierre Duquesne <stackp@online.fr>
# Licensed under the Revised BSD License.
import alsaaudio
import threading
-from scalpel.lib.event import Signal
+from gum.lib.event import Signal
import numpy
class AlsaBackend(object):
@@ -94,7 +94,7 @@ def is_playing(self):
# test
def testPlayer():
- from scalpel.lib.mock import Mock
+ from gum.lib.mock import Mock
from math import sin
SR = 44100
f0 = 440
@@ -107,7 +107,7 @@ def testPlayer():
player = Player(sound)
player.thread_play().join()
- from scalpel.lib import pysndfile
+ from gum.lib import pysndfile
f = pysndfile.sndfile('../../sounds/test1.wav')
data = f.read_frames(f.get_nframes())
sound.frames = data
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
-from scalpel.controllers import effect
-from scalpel.views.gtkeffect import Dialog
+from gum.controllers import effect
+from gum.views.gtkeffect import Dialog
import numpy
nbits_last = 8
@@ -1,5 +1,5 @@
-from scalpel.controllers import effect
-from scalpel.models import clipboard, edit
+from gum.controllers import effect
+from gum.models import clipboard, edit
import numpy
def nextpow2(n):
@@ -1,5 +1,5 @@
-from scalpel.controllers import effect
-from scalpel.models import edit
+from gum.controllers import effect
+from gum.models import edit
def replace_frames(sound, y):
sound.frames = y
@@ -1,5 +1,5 @@
-from scalpel.controllers.effect import effects
-from scalpel.views.gtkeffect import Dialog
+from gum.controllers.effect import effects
+from gum.views.gtkeffect import Dialog
import numpy
import functools
@@ -1,5 +1,5 @@
-from scalpel.controllers import effect
-from scalpel.views import gtkeffect
+from gum.controllers import effect
+from gum.views import gtkeffect
volume_last = 100
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,8 +1,8 @@
-# Scalpel sound editor (http://scalpelsound.online.fr)
+# Gum sound editor (https://github.com/stackp/Gum)
# Copyright 2009 (C) Pierre Duquesne <stackp@online.fr>
# Licensed under the Revised BSD License.
-from scalpel.lib.event import Signal
+from gum.lib.event import Signal
from threading import Thread, Event, Lock
# Cursor position can be set by a Selection object. When Player is
@@ -108,7 +108,7 @@ def _store_player_position(self):
def test():
import time
- from scalpel.lib.mock import Fake
+ from gum.lib.mock import Fake
class Empty: pass
@@ -1,9 +1,9 @@
-# Scalpel sound editor (http://scalpelsound.online.fr)
+# Gum sound editor (https://github.com/stackp/Gum)
# Copyright 2009 (C) Pierre Duquesne <stackp@online.fr>
# Licensed under the Revised BSD License.
-from scalpel.lib.event import Signal
-from scalpel.lib import pysndfile
+from gum.lib.event import Signal
+from gum.lib import pysndfile
from scikits import samplerate
from copy import copy
import os.path
@@ -638,7 +638,7 @@ def testSound():
assert False
# expand user symbol
- from scalpel.lib import mock
+ from gum.lib import mock
def fake_sndfile(filename):
assert '~' not in filename
return mock.Fake()
@@ -1,8 +1,8 @@
-# Scalpel sound editor (http://scalpelsound.online.fr)
+# Gum sound editor (https://github.com/stackp/Gum)
# Copyright 2009 (C) Pierre Duquesne <stackp@online.fr>
# Licensed under the Revised BSD License.
-from scalpel.lib.event import Signal
+from gum.lib.event import Signal
try:
import fast
except ImportError:
@@ -290,7 +290,7 @@ def test_overview():
assert len(_condense(b, 0, l, l/100)) == 100
def test_middle():
- from scalpel.lib.mock import Mock, Fake
+ from gum.lib.mock import Mock, Fake
import numpy
sound = Mock({"numchan": 1})
sound.changed = Fake()
@@ -310,7 +310,7 @@ def test_intersection():
assert intersection((5, 9), (1, 4)) == None
def test_Graph():
- from scalpel.lib.mock import Mock, Fake
+ from gum.lib.mock import Mock, Fake
import numpy
sound = Mock({"numchan": 1})
@@ -342,7 +342,7 @@ def foo(self):
def test_zoom():
- from scalpel.lib.mock import Mock, Fake
+ from gum.lib.mock import Mock, Fake
import numpy
sound = Mock({"numchan": 1})
@@ -405,7 +405,7 @@ def test_zoom():
def test_zoom_in():
import numpy
- from scalpel.lib.mock import Mock, Fake
+ from gum.lib.mock import Mock, Fake
sound = Mock({"numchan": 1})
sound.changed = Fake()
@@ -425,7 +425,7 @@ def test_zoom_in():
def test_zoom_in_on():
import numpy
- from scalpel.lib.mock import Mock, Fake
+ from gum.lib.mock import Mock, Fake
sound = Mock({"numchan": 1})
sound.changed = Fake()
data = numpy.array([1, 2, 3, 4], DTYPE)
@@ -446,7 +446,7 @@ def test_zoom_in_on():
def test_scroll():
import numpy
- from scalpel.lib.mock import Mock, Fake
+ from gum.lib.mock import Mock, Fake
sound = Mock({})
data = numpy.array([1, 2, 3, 4])
@@ -484,7 +484,7 @@ def test_density():
def test_channels():
import numpy
- from scalpel.lib.mock import Mock, Fake
+ from gum.lib.mock import Mock, Fake
sound = Mock({"numchan": 1})
sound.changed = Fake()
sound.frames = numpy.array(range(1000000), DTYPE)
@@ -1,8 +1,8 @@
-# Scalpel sound editor (http://scalpelsound.online.fr)
+# Gum sound editor (https://github.com/stackp/Gum)
# Copyright 2009 (C) Pierre Duquesne <stackp@online.fr>
# Licensed under the Revised BSD License.
-from scalpel.lib.event import Signal
+from gum.lib.event import Signal
class Selection(object):
"""Represents a selection on a Graph object.
@@ -92,7 +92,7 @@ def get(self):
def test_selection():
from graphmodel import Graph
- from scalpel.lib.mock import Fake
+ from gum.lib.mock import Fake
class FakeGraph():
density = 10
@@ -1,11 +1,11 @@
#!/usr/bin/env python
-# Scalpel sound editor (http://scalpelsound.online.fr)
+# Gum sound editor (https://github.com/stackp/Gum)
# Copyright 2009 (C) Pierre Duquesne <stackp@online.fr>
# Licensed under the Revised BSD License.
-from scalpel import app
-from scalpel.views import gtkui
+from gum import app
+from gum.views import gtkui
import sys
def run():
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,18 +1,18 @@
-# Scalpel sound editor (http://scalpelsound.online.fr)
+# Gum sound editor (https://github.com/stackp/Gum)
# Copyright 2009 (C) Pierre Duquesne <stackp@online.fr>
# Licensed under the Revised BSD License.
-from scalpel import constants
+from gum import constants
# pygtk gets program name from sys.argv[0]. This name appears in
# taskbars when windows are grouped together.
import sys
sys.argv[0] = constants.__appname__
-from scalpel import app
-from scalpel.controllers import control
-from scalpel.views.gtkwaveform import GraphView, GraphScrollbar
-from scalpel.views.gtkfiledialog import OpenFileDialog, SaveFileDialog, \
+from gum import app
+from gum.controllers import control
+from gum.views.gtkwaveform import GraphView, GraphScrollbar
+from gum.views.gtkfiledialog import OpenFileDialog, SaveFileDialog, \
SaveSelectionFileDialog
import copy
import os.path
@@ -128,7 +128,7 @@ def _make_ui_manager(self):
</menu>
<menu action="Effects">
</menu>
- <menu action="Scalpel">
+ <menu action="Gum">
<menuitem action="About"/>
</menu>
</menubar>
@@ -171,7 +171,7 @@ def _make_ui_manager(self):
('Edit', None, '_Edit'),
('View', None, '_View'),
('Effects', None, 'Effe_cts'),
- ('Scalpel', None, '_Scalpel'),
+ ('Gum', None, '_Gum'),
('New', gtk.STOCK_NEW, None, None, '', self.new),
('Open', gtk.STOCK_OPEN, None, None, '', self.open),
('Save', gtk.STOCK_SAVE, None, None, '', self.save),
@@ -552,7 +552,7 @@ def forward(*args):
# -- Tests
def test():
- from scalpel.lib.mock import Fake, Mock
+ from gum.lib.mock import Fake, Mock
graph = Mock({"frames_info":(0, 0, [], []),
"channels": [[(0, 0.5)]],
"set_width": None,
@@ -1,12 +1,12 @@
-# Scalpel sound editor (http://scalpelsound.online.fr)
+# Gum sound editor (https://github.com/stackp/Gum)
# Copyright 2009 (C) Pierre Duquesne <stackp@online.fr>
# Licensed under the Revised BSD License.
import gtk
import gobject
import cairo
try:
- from scalpel import fast
+ from gum import fast
except ImportError:
HAVE_FAST = False
else:
@@ -508,7 +508,7 @@ def update_scrollbar(self):
# -- Tests
if __name__ == '__main__':
- from scalpel.lib.mock import Mock, Fake
+ from gum.lib.mock import Mock, Fake
def test_layered():
Oops, something went wrong.

0 comments on commit 0cc8441

Please sign in to comment.