473,416 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

How to turn this to mirror BACK to FRONT

Mary Seelye
This method mirrors FRONT to BACK and now I need it to go BACK to FRONT:

public void mirrorFrontToBack()
{
int length = this.getLength(); //save the length
int mirrorPoint = length / 2; //mirror around this
int value = 0; //hold the current value
//loop from 0 to mirrorPoint
for (int i=0; i < mirrorPoint; i++) {
value = this.getSampleValueAt(i);
this.setSampleValueAt(length - 1 - i, value);
}
}
Nov 2 '10 #1
3 2315
Oralloy
988 Expert 512MB
Mary,

You should be able to use the same code, just run the loop in reverse. If you change the loop to count down from length-1 to mirrorPoint, I think it'll probably do what you need.

BTW, when you post code in the future, you can use [code]...[/code] tags to make your code a lot more readable.

There's a whole discussion of tags down this link.

Good luck with it all.
Nov 3 '10 #2
Ok, I'll try that. Thank you! And thanks for the [code] tag tips, I'm fairly new to this site.
Nov 3 '10 #3
Oralloy
988 Expert 512MB
Mary,

Good luck!

It's always nice to have some willing ears and suggestions when one gets to a sticking point. The folks here are among the best.

Cheers!
Nov 3 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mark S Pryor | last post by:
Hello, Using MySQL 4.017 on Win2k sp3: using MySQL built-ins: how can I convert a value stored as a hexadecimal string back to a binary string while logged into the shell? >set @t1=616263;...
2
by: deko | last post by:
I want to turn error handling off, then back on in a sub routine that backs up a select set of documents. For some reason, I can't seem to get this to work - Private Sub BackupDocs() On Error...
6
by: Debbie | last post by:
Hi Stephen, I'm trying to use your mousehook off...and thanks so much... it's such a blessing that you share with the rest of us. I have the dll in the same folder as the database and placed...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
2
by: MattB | last post by:
I get a dataset passed as a string in my application (passed from a c++ dll) and I convert it to a usable dataset like this: Dim XMLRead As New System.IO.StringReader(lcXML)...
3
by: DC | last post by:
Hi, (ASP.Net 1.1) is it possible to (programmatically and globally) deactivate page fragment caching? We have only two scenarios, development stage where we want caching off and testing where we...
1
by: Micah Hastings | last post by:
The last time I did this was back in Visual Basic 6. Now I am using VB.NET 2005. When I use my code now, it turns off the monitor just fine. However when I move my mouse the monitor comes back...
5
by: HS Hartkamp | last post by:
Hi all, I am working with fairly large databases (> 500 Mb / < 2,000,000 rexcords), and often need to do action queries on these. I have the feeling that much of the computing power is going...
4
by: Thirsty Traveler | last post by:
I installed an eval copy of JetBrain's "ReSharper" that has since expired. After uninstalling the eval version, my intellisense no longer seems to be working. I am thinking it was replaced by...
2
by: cruddpuppet | last post by:
My school computer has monitor issues (turns off every 2 minutes) and I have to constantly turn it back on. I don't have the software or the privelages to install the software needed to scan for...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.