From 0af809bf174b5f9af20f602e6eb135c519c7af70 Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Thu, 27 Nov 2014 15:20:14 +0100 Subject: add amSynth, fix gallery plugin (python 3). --- content/images/screenshots/amsynth.png | Bin 0 -> 167662 bytes content/pages/projects.md | 1 + extra_plugins/gallery.py | 8 ++++---- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 content/images/screenshots/amsynth.png diff --git a/content/images/screenshots/amsynth.png b/content/images/screenshots/amsynth.png new file mode 100644 index 0000000..cf349d3 Binary files /dev/null and b/content/images/screenshots/amsynth.png differ diff --git a/content/pages/projects.md b/content/pages/projects.md index ad967ca..20ac739 100644 --- a/content/pages/projects.md +++ b/content/pages/projects.md @@ -13,6 +13,7 @@ Another list is available at . Project | Description -------------------------------------------------------------|-------------------------------------------------------------------- +[amSynth](https://code.google.com/p/amsynth/) | Virtual analog synthesizer. [EMap](http://www.colorfulsoftware.com/emap) | FluidSynth soundfont playing synth. [foo-yc20](http://code.google.com/p/foo-yc20/) | Faithful emulation of the YC-20 divide-down combo organ. [lv2-mdaEPiano](http://github.com/rekado/lv2-mdaEPiano) | Native LV2 port of the famous mdaEPiano VSTi. diff --git a/extra_plugins/gallery.py b/extra_plugins/gallery.py index 3c5011d..84d5a6f 100644 --- a/extra_plugins/gallery.py +++ b/extra_plugins/gallery.py @@ -1,6 +1,6 @@ -import logging, json, os, sys, time, Image +import logging, json, os, sys, time from pelican import signals -from PIL import ImageOps +from PIL import Image, ImageOps """ @@ -163,10 +163,10 @@ class Gallery(): if not os.path.exists(preset_dir): os.makedirs(preset_dir) else: - print "You have no presets defined, please add GALLERY_PRESETS array to settings file, with at least one preset defined, see docs." + print("You have no presets defined, please add GALLERY_PRESETS array to settings file, with at least one preset defined, see docs.") def get_files_from_data(self): - print "getting files for %s" % self.absolute_src_path + print("getting files for %s" % self.absolute_src_path) from os import listdir from os.path import isfile, join return [ f for f in listdir(self.absolute_src_path) if isfile(join(self.absolute_src_path,f)) and f != ".DS_Store" ] -- cgit v1.2.1